diff --git a/README.md b/README.md index 7799715f2..4c03cf477 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,11 @@ TODO: add repo description. [//]: # (addons) -This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools. +Available addons +---------------- +addon | version | maintainers | summary +--- | --- | --- | --- +[product_variant_sale_price](product_variant_sale_price/) | 17.0.1.0.0 | | Allows to write fixed prices in product variants [//]: # (end addons) diff --git a/product_variant_sale_price/README.rst b/product_variant_sale_price/README.rst new file mode 100644 index 000000000..d4db55b56 --- /dev/null +++ b/product_variant_sale_price/README.rst @@ -0,0 +1,89 @@ +========================== +Product Variant Sale Price +========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:226296e068442b8d453ca8956b4985e42cc507eae427e04d125ec105a89517ee + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproduct--variant-lightgray.png?logo=github + :target: https://github.com/OCA/product-variant/tree/17.0/product_variant_sale_price + :alt: OCA/product-variant +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/product-variant-17-0/product-variant-17-0-product_variant_sale_price + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/product-variant&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows to handle sale price at product variant level +(product.product) instead of product level (product.template), which is +the default. + +It replaces the extra price configuration with a fix price that can be +modified on each variant independently, which allows setting absolute +prices instead of relative ones. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Tecnativa + +Contributors +------------ + +- Carlos Dauden +- Sergio Teruel +- Alex Comba +- Fabien Bourgeois +- Vicent Cubells +- RabbitJon-S73 +- Emanuel Cino +- Pedroguirao + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/product-variant `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/product_variant_sale_price/__init__.py b/product_variant_sale_price/__init__.py new file mode 100644 index 000000000..15689df3b --- /dev/null +++ b/product_variant_sale_price/__init__.py @@ -0,0 +1,5 @@ +# Copyright 2016 Sergio Teruel +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import models +from .hooks import set_sale_price_on_variant diff --git a/product_variant_sale_price/__manifest__.py b/product_variant_sale_price/__manifest__.py new file mode 100644 index 000000000..e7276799c --- /dev/null +++ b/product_variant_sale_price/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2016 Sergio Teruel +# Copyright 2018 Fabien Bourgeois +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +{ + "name": "Product Variant Sale Price", + "summary": "Allows to write fixed prices in product variants", + "version": "17.0.1.0.0", + "category": "Product Management", + "website": "https://github.com/OCA/product-variant", + "author": "Tecnativa, " "Odoo Community Association (OCA)", + "license": "AGPL-3", + "installable": True, + "depends": ["account", "sale"], + "data": ["views/product_views.xml"], + "post_init_hook": "set_sale_price_on_variant", +} diff --git a/product_variant_sale_price/hooks.py b/product_variant_sale_price/hooks.py new file mode 100644 index 000000000..f38770b59 --- /dev/null +++ b/product_variant_sale_price/hooks.py @@ -0,0 +1,24 @@ +# Copyright 2016 Sergio Teruel +# Copyright 2018 Fabien Bourgeois +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + + +def set_sale_price_on_variant(env, template_id=None): + sql = """ + UPDATE product_product pp + SET fix_price = pt.list_price + ( + SELECT COALESCE(SUM(ptav.price_extra), 0) + FROM product_variant_combination pvc + LEFT JOIN product_template_attribute_value ptav ON + ptav.id = pvc.product_template_attribute_value_id + WHERE pvc.product_product_id = pp.id + AND ptav.product_tmpl_id = pt.id + ) + FROM product_template pt + WHERE pt.id = pp.product_tmpl_id + """ + if template_id: + sql += "AND pt.id = %s" + env.cr.execute(sql, (template_id,)) + else: + env.cr.execute(sql) diff --git a/product_variant_sale_price/i18n/ca.po b/product_variant_sale_price/i18n/ca.po new file mode 100644 index 000000000..60773e954 --- /dev/null +++ b/product_variant_sale_price/i18n/ca.po @@ -0,0 +1,68 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# Carles Antoli , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-14 05:29+0000\n" +"PO-Revision-Date: 2022-04-13 14:05+0000\n" +"Last-Translator: Noel estudillo \n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "Preu fix" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "Preu de llista" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Producte" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" +"El preu de venda es gestiona des de la plantilla del producte. Feu clic al " +"botó \"Configura les variants\" per establir els preus dels atributs " +"addicionals." + +#~ msgid "Product Template" +#~ msgstr "Plantilla del producte" + +#~ msgid "Sale Price" +#~ msgstr "Preu de venta" diff --git a/product_variant_sale_price/i18n/de.po b/product_variant_sale_price/i18n/de.po new file mode 100644 index 000000000..1db2b7667 --- /dev/null +++ b/product_variant_sale_price/i18n/de.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2016 +# Niki Waibel , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-11 03:45+0000\n" +"PO-Revision-Date: 2016-11-11 03:45+0000\n" +"Last-Translator: Niki Waibel , 2016\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Produkt" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Produktvorlage" diff --git a/product_variant_sale_price/i18n/el_GR.po b/product_variant_sale_price/i18n/el_GR.po new file mode 100644 index 000000000..284753e92 --- /dev/null +++ b/product_variant_sale_price/i18n/el_GR.po @@ -0,0 +1,59 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-18 05:12+0000\n" +"PO-Revision-Date: 2017-02-18 05:12+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/" +"el_GR/)\n" +"Language: el_GR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Προϊόν" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" diff --git a/product_variant_sale_price/i18n/es.po b/product_variant_sale_price/i18n/es.po new file mode 100644 index 000000000..1da947623 --- /dev/null +++ b/product_variant_sale_price/i18n/es.po @@ -0,0 +1,80 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# Pedro M. Baeza , 2016 +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-11 03:45+0000\n" +"PO-Revision-Date: 2024-02-14 19:35+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "Precio fijo" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "Lista de Precios" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Producto" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" +"El precio de venta se gestiona desde la plantilla del producto. Haga clic en " +"el botón \"Configurar Variantes\" para establecer los precios de los " +"atributos adicionales." + +#~ msgid "Product Template" +#~ msgstr "Plantilla de producto" + +#~ msgid "Sale Price" +#~ msgstr "Precio de Venta" + +#~ msgid "" +#~ "{'invisible': [\n" +#~ " ('product_variant_count', " +#~ "'>', 1)\n" +#~ " ]}" +#~ msgstr "" +#~ "{'invisible': [\n" +#~ " ('product_variant_count', " +#~ "'>', 1)\n" +#~ " ]}" diff --git a/product_variant_sale_price/i18n/es_ES.po b/product_variant_sale_price/i18n/es_ES.po new file mode 100644 index 000000000..86245bfa7 --- /dev/null +++ b/product_variant_sale_price/i18n/es_ES.po @@ -0,0 +1,59 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# Javier García-Panach , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-31 06:23+0000\n" +"PO-Revision-Date: 2016-12-31 06:23+0000\n" +"Last-Translator: Javier García-Panach , 2017\n" +"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/" +"es_ES/)\n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Producto" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" diff --git a/product_variant_sale_price/i18n/es_MX.po b/product_variant_sale_price/i18n/es_MX.po new file mode 100644 index 000000000..b0e717ac1 --- /dev/null +++ b/product_variant_sale_price/i18n/es_MX.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# Juan González , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-29 14:59+0000\n" +"PO-Revision-Date: 2016-11-29 14:59+0000\n" +"Last-Translator: Juan González , 2016\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/" +"es_MX/)\n" +"Language: es_MX\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Plantilla del producto" diff --git a/product_variant_sale_price/i18n/eu.po b/product_variant_sale_price/i18n/eu.po new file mode 100644 index 000000000..cef9d17c7 --- /dev/null +++ b/product_variant_sale_price/i18n/eu.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# Esther Martín Menéndez , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-18 05:12+0000\n" +"PO-Revision-Date: 2017-02-18 05:12+0000\n" +"Last-Translator: Esther Martín Menéndez , 2017\n" +"Language-Team: Basque (https://www.transifex.com/oca/teams/23907/eu/)\n" +"Language: eu\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Produktua" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" diff --git a/product_variant_sale_price/i18n/fi.po b/product_variant_sale_price/i18n/fi.po new file mode 100644 index 000000000..8f5f84b50 --- /dev/null +++ b/product_variant_sale_price/i18n/fi.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-11 03:45+0000\n" +"PO-Revision-Date: 2016-11-11 03:45+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Tuote" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Tuotteen malli" diff --git a/product_variant_sale_price/i18n/fr.po b/product_variant_sale_price/i18n/fr.po new file mode 100644 index 000000000..0b0d7e629 --- /dev/null +++ b/product_variant_sale_price/i18n/fr.po @@ -0,0 +1,65 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-11 03:45+0000\n" +"PO-Revision-Date: 2022-03-02 17:17+0000\n" +"Last-Translator: ajaniszewska-dev \n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "Prix Fixe" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "List de Prix" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Article" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Modèle d'article" + +#~ msgid "Sale Price" +#~ msgstr "Prix de Vente" diff --git a/product_variant_sale_price/i18n/fr_CH.po b/product_variant_sale_price/i18n/fr_CH.po new file mode 100644 index 000000000..f74730fc3 --- /dev/null +++ b/product_variant_sale_price/i18n/fr_CH.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# leemannd , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-29 14:59+0000\n" +"PO-Revision-Date: 2016-11-29 14:59+0000\n" +"Last-Translator: leemannd , 2016\n" +"Language-Team: French (Switzerland) (https://www.transifex.com/oca/" +"teams/23907/fr_CH/)\n" +"Language: fr_CH\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Produit" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Template de produit" diff --git a/product_variant_sale_price/i18n/fr_FR.po b/product_variant_sale_price/i18n/fr_FR.po new file mode 100644 index 000000000..cfb387053 --- /dev/null +++ b/product_variant_sale_price/i18n/fr_FR.po @@ -0,0 +1,59 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-11 03:45+0000\n" +"PO-Revision-Date: 2016-11-11 03:45+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: French (France) (https://www.transifex.com/oca/teams/23907/" +"fr_FR/)\n" +"Language: fr_FR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Produit" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" diff --git a/product_variant_sale_price/i18n/gl.po b/product_variant_sale_price/i18n/gl.po new file mode 100644 index 000000000..01f5f4139 --- /dev/null +++ b/product_variant_sale_price/i18n/gl.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-18 05:12+0000\n" +"PO-Revision-Date: 2017-02-18 05:12+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Produto" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" diff --git a/product_variant_sale_price/i18n/hr.po b/product_variant_sale_price/i18n/hr.po new file mode 100644 index 000000000..4412a0080 --- /dev/null +++ b/product_variant_sale_price/i18n/hr.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# Bole , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-18 01:17+0000\n" +"PO-Revision-Date: 2016-09-18 01:17+0000\n" +"Last-Translator: Bole , 2016\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Proizvod" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Predložak proizvoda" diff --git a/product_variant_sale_price/i18n/hr_HR.po b/product_variant_sale_price/i18n/hr_HR.po new file mode 100644 index 000000000..f8e6a8f7f --- /dev/null +++ b/product_variant_sale_price/i18n/hr_HR.po @@ -0,0 +1,63 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-19 06:41+0000\n" +"PO-Revision-Date: 2017-08-19 06:41+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_HR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Proizvod" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Predložak proizvoda" diff --git a/product_variant_sale_price/i18n/it.po b/product_variant_sale_price/i18n/it.po new file mode 100644 index 000000000..c57efa9cb --- /dev/null +++ b/product_variant_sale_price/i18n/it.po @@ -0,0 +1,78 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2016 +# Paolo Valier , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-18 01:17+0000\n" +"PO-Revision-Date: 2024-02-16 16:36+0000\n" +"Last-Translator: mymage \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "Prezzo fisso" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "Prezzo di listino" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Prodotto" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" +"Il prezzo di vendita è gestito dal modello prodotto. Fare clic sul pulsante " +"'Configura varianti' per impostare i prezzi dell'atributo extra." + +#~ msgid "Product Template" +#~ msgstr "Template Prodotto" + +#~ msgid "Sale Price" +#~ msgstr "Prezzo di vendita" + +#~ msgid "" +#~ "{'invisible': [\n" +#~ " ('product_variant_count', " +#~ "'>', 1)\n" +#~ " ]}" +#~ msgstr "" +#~ "{'invisible': [\n" +#~ "('product_variant_count', '>', 1)\n" +#~ "]}" diff --git a/product_variant_sale_price/i18n/nl.po b/product_variant_sale_price/i18n/nl.po new file mode 100644 index 000000000..a4dc764b3 --- /dev/null +++ b/product_variant_sale_price/i18n/nl.po @@ -0,0 +1,79 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-18 05:12+0000\n" +"PO-Revision-Date: 2018-09-25 14:00+0000\n" +"Last-Translator: Cas Vissers \n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.1.1\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "Bepaal prijs" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +#, fuzzy +msgid "List Price" +msgstr "Bepaal prijs" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Product" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Product sjabloon" + +#, fuzzy +#~| msgid "Fix Price" +#~ msgid "Sale Price" +#~ msgstr "Bepaal prijs" + +#~ msgid "" +#~ "{'invisible': [\n" +#~ " ('product_variant_count', " +#~ "'>', 1)\n" +#~ " ]}" +#~ msgstr "" +#~ "{'invisible': [\n" +#~ " ('product_variant_count', " +#~ "'>', 1)\n" +#~ " ]}" diff --git a/product_variant_sale_price/i18n/nl_NL.po b/product_variant_sale_price/i18n/nl_NL.po new file mode 100644 index 000000000..56a83decf --- /dev/null +++ b/product_variant_sale_price/i18n/nl_NL.po @@ -0,0 +1,59 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-18 05:12+0000\n" +"PO-Revision-Date: 2017-02-18 05:12+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Product" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" diff --git a/product_variant_sale_price/i18n/product_variant_sale_price.pot b/product_variant_sale_price/i18n/product_variant_sale_price.pot new file mode 100644 index 000000000..35f6945cf --- /dev/null +++ b/product_variant_sale_price/i18n/product_variant_sale_price.pot @@ -0,0 +1,53 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all" +" variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure" +" Variants' button to set the extra attribute prices." +msgstr "" diff --git a/product_variant_sale_price/i18n/pt.po b/product_variant_sale_price/i18n/pt.po new file mode 100644 index 000000000..46ba88c33 --- /dev/null +++ b/product_variant_sale_price/i18n/pt.po @@ -0,0 +1,67 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-29 14:59+0000\n" +"PO-Revision-Date: 2021-07-27 17:49+0000\n" +"Last-Translator: Pedro Castro Silva \n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "Preço Fixo" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "Preço de Lista" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Produto" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" +"O preço de venda é gerido a partir do modelo de produto. Clique no botão " +"'Configurar Variantes' para atribuir o preços extra dos atributos." + +#~ msgid "Product Template" +#~ msgstr "Modelo de Produto" + +#~ msgid "Sale Price" +#~ msgstr "Preço de Venda" diff --git a/product_variant_sale_price/i18n/pt_BR.po b/product_variant_sale_price/i18n/pt_BR.po new file mode 100644 index 000000000..e693b73ba --- /dev/null +++ b/product_variant_sale_price/i18n/pt_BR.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-19 06:41+0000\n" +"PO-Revision-Date: 2017-08-19 06:41+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Produto" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Modelo Produto" diff --git a/product_variant_sale_price/i18n/ro.po b/product_variant_sale_price/i18n/ro.po new file mode 100644 index 000000000..5a4e04ed2 --- /dev/null +++ b/product_variant_sale_price/i18n/ro.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-19 06:41+0000\n" +"PO-Revision-Date: 2017-08-19 06:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Produs" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Produs șablon" diff --git a/product_variant_sale_price/i18n/ru.po b/product_variant_sale_price/i18n/ru.po new file mode 100644 index 000000000..78c78765f --- /dev/null +++ b/product_variant_sale_price/i18n/ru.po @@ -0,0 +1,60 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# Victor Safronovich , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-05-01 21:12+0000\n" +"PO-Revision-Date: 2017-05-01 21:12+0000\n" +"Last-Translator: Victor Safronovich , 2017\n" +"Language-Team: Russian (https://www.transifex.com/oca/teams/23907/ru/)\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" +"%100>=11 && n%100<=14)? 2 : 3);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Товар/Услуга" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" diff --git a/product_variant_sale_price/i18n/sk.po b/product_variant_sale_price/i18n/sk.po new file mode 100644 index 000000000..f176e71f0 --- /dev/null +++ b/product_variant_sale_price/i18n/sk.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# Jan Prokop , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-09-04 12:48+0000\n" +"PO-Revision-Date: 2017-09-04 12:48+0000\n" +"Last-Translator: Jan Prokop , 2017\n" +"Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/sk/)\n" +"Language: sk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Produkt" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" diff --git a/product_variant_sale_price/i18n/sl.po b/product_variant_sale_price/i18n/sl.po new file mode 100644 index 000000000..b448227e8 --- /dev/null +++ b/product_variant_sale_price/i18n/sl.po @@ -0,0 +1,80 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# Matjaž Mozetič , 2016 +# OCA Transbot , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-09-07 02:42+0000\n" +"PO-Revision-Date: 2016-09-07 02:42+0000\n" +"Last-Translator: OCA Transbot , 2016\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" +"%100==4 ? 2 : 3);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "Fiksna cena" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +#, fuzzy +msgid "List Price" +msgstr "Fiksna cena" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Proizvod" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Predloga proizvoda" + +#, fuzzy +#~| msgid "Fix Price" +#~ msgid "Sale Price" +#~ msgstr "Fiksna cena" + +#~ msgid "" +#~ "{'invisible': [\n" +#~ " ('product_variant_count', " +#~ "'>', 1)\n" +#~ " ]}" +#~ msgstr "" +#~ "{'invisible': [\n" +#~ " ('product_variant_count', " +#~ "'>', 1)\n" +#~ " ]}" diff --git a/product_variant_sale_price/i18n/tr.po b/product_variant_sale_price/i18n/tr.po new file mode 100644 index 000000000..9024e5c52 --- /dev/null +++ b/product_variant_sale_price/i18n/tr.po @@ -0,0 +1,58 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# Ivan BARAYEV , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-31 06:23+0000\n" +"PO-Revision-Date: 2016-12-31 06:23+0000\n" +"Last-Translator: Ivan BARAYEV , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Ürün" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" diff --git a/product_variant_sale_price/i18n/tr_TR.po b/product_variant_sale_price/i18n/tr_TR.po new file mode 100644 index 000000000..557d0d214 --- /dev/null +++ b/product_variant_sale_price/i18n/tr_TR.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# Ozge Altinisik , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-31 06:23+0000\n" +"PO-Revision-Date: 2016-12-31 06:23+0000\n" +"Last-Translator: Ozge Altinisik , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Ürün" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Ürün şablonu" diff --git a/product_variant_sale_price/i18n/vi_VN.po b/product_variant_sale_price/i18n/vi_VN.po new file mode 100644 index 000000000..1ea07a661 --- /dev/null +++ b/product_variant_sale_price/i18n/vi_VN.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-19 06:41+0000\n" +"PO-Revision-Date: 2017-08-19 06:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Vietnamese (Viet Nam) (https://www.transifex.com/oca/" +"teams/23907/vi_VN/)\n" +"Language: vi_VN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "Sản phẩm" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "Mẫu sản phẩm" diff --git a/product_variant_sale_price/i18n/zh_CN.po b/product_variant_sale_price/i18n/zh_CN.po new file mode 100644 index 000000000..2e4552ac5 --- /dev/null +++ b/product_variant_sale_price/i18n/zh_CN.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * product_variant_sale_price +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-19 06:41+0000\n" +"PO-Revision-Date: 2017-08-19 06:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/" +"zh_CN/)\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: product_variant_sale_price +#: model_terms:ir.ui.view,arch_db:product_variant_sale_price.product_template_form_view +msgid "" +"Setting the price here will update all " +"variants." +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__fix_price +msgid "Fix Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__list_price +msgid "List Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_template +msgid "Product" +msgstr "产品" + +#. module: product_variant_sale_price +#: model:ir.model,name:product_variant_sale_price.model_product_product +msgid "Product Variant" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,field_description:product_variant_sale_price.field_product_product__lst_price +msgid "Sales Price" +msgstr "" + +#. module: product_variant_sale_price +#: model:ir.model.fields,help:product_variant_sale_price.field_product_product__lst_price +msgid "" +"The sale price is managed from the product template. Click on the 'Configure " +"Variants' button to set the extra attribute prices." +msgstr "" + +#~ msgid "Product Template" +#~ msgstr "产品模板" diff --git a/product_variant_sale_price/models/__init__.py b/product_variant_sale_price/models/__init__.py new file mode 100644 index 000000000..71ef05a38 --- /dev/null +++ b/product_variant_sale_price/models/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2016 Sergio Teruel +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import product_product diff --git a/product_variant_sale_price/models/product_product.py b/product_variant_sale_price/models/product_product.py new file mode 100644 index 000000000..c96571ac8 --- /dev/null +++ b/product_variant_sale_price/models/product_product.py @@ -0,0 +1,108 @@ +# Copyright 2016 Sergio Teruel +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from odoo import api, fields, models + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + def _update_fix_price(self, vals): + if "list_price" in vals: + self.mapped("product_variant_ids").write({"fix_price": vals["list_price"]}) + + @api.model_create_multi + def create(self, vals): + records = super().create(vals) + for i, product_tmpl in enumerate(records): + single_vals = vals[i] if isinstance(vals, list) else vals + product_tmpl._update_fix_price(single_vals) + return records + + def write(self, vals): + res = super().write(vals) + if self.env.context.get("skip_update_fix_price", False): + return res + for template in self: + template._update_fix_price(vals) + return res + + def _get_combination_info( + self, + combination=False, + product_id=False, + add_qty=1, + pricelist=False, + parent_combination=False, + only_template=False, + ): + res = super()._get_combination_info( + combination, + product_id, + add_qty, + pricelist, + parent_combination, + only_template, + ) + res["price_extra"] = 0.0 + return res + + +class ProductProduct(models.Model): + _inherit = "product.product" + + lst_price = fields.Float( + compute="_compute_lst_price", + inverse="_inverse_product_lst_price", + ) + list_price = fields.Float( + compute="_compute_list_price", + ) + fix_price = fields.Float() + + @api.depends("fix_price") + def _compute_lst_price(self): + uom_model = self.env["uom.uom"] + for product in self: + price = product.fix_price or product.list_price + if self.env.context.get("uom"): + context_uom = uom_model.browse(self.env.context["uom"]) + price = product.uom_id._compute_price(price, context_uom) + product.lst_price = price + + def _compute_list_price(self): + uom_model = self.env["uom.uom"] + for product in self: + price = product.fix_price or product.product_tmpl_id.list_price + if self.env.context.get("uom"): + context_uom = uom_model.browse(self.env.context["uom"]) + price = product.uom_id._compute_price(price, context_uom) + product.list_price = price + + def _inverse_product_lst_price(self): + uom_model = self.env["uom.uom"] + for product in self: + vals = {} + if self.env.context.get("uom"): + vals["fix_price"] = product.uom_id._compute_price( + product.lst_price, uom_model.browse(self.env.context["uom"]) + ) + else: + vals["fix_price"] = product.lst_price + if product.product_variant_count == 1: + product.product_tmpl_id.list_price = vals["fix_price"] + else: + other_products = product.product_tmpl_id.product_variant_ids - product + fix_prices = other_products.mapped("fix_price") + [product.lst_price] + # for consistency with price shown in the shop + product.product_tmpl_id.with_context( + skip_update_fix_price=True + ).list_price = min(fix_prices) + product.write(vals) + + def _compute_product_price_extra(self): + """the sale.order.line module calculates the price_unit by adding + the value of price_extra and this can generate inconsistencies + if the field has old data stored.""" + for product in self: + product.price_extra = 0.0 diff --git a/product_variant_sale_price/pyproject.toml b/product_variant_sale_price/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/product_variant_sale_price/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/product_variant_sale_price/readme/CONTRIBUTORS.md b/product_variant_sale_price/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..dd8987704 --- /dev/null +++ b/product_variant_sale_price/readme/CONTRIBUTORS.md @@ -0,0 +1,8 @@ +- Carlos Dauden \<\> +- Sergio Teruel \<\> +- Alex Comba \<\> +- Fabien Bourgeois \<\> +- Vicent Cubells \<\> +- RabbitJon-S73 \<\> +- Emanuel Cino \<\> +- Pedroguirao \<\> diff --git a/product_variant_sale_price/readme/DESCRIPTION.md b/product_variant_sale_price/readme/DESCRIPTION.md new file mode 100644 index 000000000..4a341a9b9 --- /dev/null +++ b/product_variant_sale_price/readme/DESCRIPTION.md @@ -0,0 +1,7 @@ +This module allows to handle sale price at product variant level +(product.product) instead of product level (product.template), which is +the default. + +It replaces the extra price configuration with a fix price that can be +modified on each variant independently, which allows setting absolute +prices instead of relative ones. diff --git a/product_variant_sale_price/static/description/icon.png b/product_variant_sale_price/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/product_variant_sale_price/static/description/icon.png differ diff --git a/product_variant_sale_price/static/description/index.html b/product_variant_sale_price/static/description/index.html new file mode 100644 index 000000000..537e00ccc --- /dev/null +++ b/product_variant_sale_price/static/description/index.html @@ -0,0 +1,432 @@ + + + + + +Product Variant Sale Price + + + +
+

Product Variant Sale Price

+ + +

Beta License: AGPL-3 OCA/product-variant Translate me on Weblate Try me on Runboat

+

This module allows to handle sale price at product variant level +(product.product) instead of product level (product.template), which is +the default.

+

It replaces the extra price configuration with a fix price that can be +modified on each variant independently, which allows setting absolute +prices instead of relative ones.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/product-variant project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/product_variant_sale_price/tests/__init__.py b/product_variant_sale_price/tests/__init__.py new file mode 100644 index 000000000..c206e639d --- /dev/null +++ b/product_variant_sale_price/tests/__init__.py @@ -0,0 +1,4 @@ +# Copyright 2016 Sergio Teruel +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from . import test_product_product diff --git a/product_variant_sale_price/tests/test_product_product.py b/product_variant_sale_price/tests/test_product_product.py new file mode 100644 index 000000000..d598f2e4a --- /dev/null +++ b/product_variant_sale_price/tests/test_product_product.py @@ -0,0 +1,138 @@ +# Copyright 2016 Sergio Teruel +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +from odoo.tests.common import TransactionCase + + +class TestProductVariantPrice(TransactionCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.template = cls.env["product.template"] + cls.product_product = cls.env["product.product"] + cls.attribute = cls.env["product.attribute"] + cls.attribute_value = cls.env["product.attribute.value"] + + cls.att_color = cls.attribute.create({"name": "color_test"}) + + cls.att_color_blue = cls.attribute_value.create( + {"name": "Blue", "attribute_id": cls.att_color.id} + ) + cls.att_color_red = cls.attribute_value.create( + {"name": "Red", "attribute_id": cls.att_color.id} + ) + + cls.uom_unit = cls.env.ref("uom.product_uom_unit") + cls.uom_dozen = cls.env.ref("uom.product_uom_dozen") + + cls.product_template = cls.template.create( + { + "name": "Product Template", + "list_price": 1500.00, + "attribute_line_ids": [ + ( + 0, + 0, + { + "attribute_id": cls.att_color.id, + "value_ids": [ + (6, 0, (cls.att_color_blue + cls.att_color_red).ids) + ], + }, + ) + ], + "uom_id": cls.uom_unit.id, + } + ) + + cls.product_blue = cls.product_template.product_variant_ids.filtered( + lambda x: x.product_template_attribute_value_ids.product_attribute_value_id + == cls.att_color_blue + ) + cls.product_red = cls.product_template.product_variant_ids.filtered( + lambda x: x.product_template_attribute_value_ids.product_attribute_value_id + == cls.att_color_red + ) + + def test_post_init_hook(self): + from ..hooks import set_sale_price_on_variant + + self.product_template.product_variant_ids.write({"fix_price": 0.0}) + # Take account price extra + self.product_blue.product_template_attribute_value_ids.write( + {"price_extra": 100.00} + ) + self.product_red.product_template_attribute_value_ids.write( + {"price_extra": 200.00} + ) + + # Flush the records to DB before direct SQL + self.product_template.product_variant_ids.flush_model() + self.product_blue.product_template_attribute_value_ids.flush_model() + + set_sale_price_on_variant(self.env, self.product_template.id) + self.product_template.product_variant_ids.invalidate_recordset() + self.assertEqual( + self.product_template.list_price + 100.00, self.product_blue.lst_price + ) + self.assertEqual( + self.product_template.list_price + 200.00, self.product_red.lst_price + ) + + def test_create_product_template(self): + self.assertEqual( + self.product_template.list_price, + self.product_template.product_variant_ids[:1].lst_price, + ) + + def test_create_product_template_different_uom(self): + new_template = self.product_template.with_context(uom=self.uom_dozen.id).copy( + {"uom_id": self.uom_dozen.id} + ) + self.assertEqual( + new_template.list_price, new_template.product_variant_ids[:1].lst_price + ) + + def test_create_variant(self): + new_variant = self.product_product.create( + { + "product_tmpl_id": self.product_template.id, + "name": self.product_template.name, + } + ) + self.assertEqual(self.product_template.list_price, new_variant.lst_price) + + def test_create_variant_different_uom(self): + new_variant = self.product_product.with_context(uom=self.uom_dozen.id).create( + { + "product_tmpl_id": self.product_template.id, + "uom_id": self.uom_dozen.id, + "name": self.product_template.name, + } + ) + self.assertEqual(self.product_template.list_price, new_variant.lst_price) + + def test_update_variant(self): + self.product_blue.lst_price = 2000.00 + self.assertNotEqual( + self.product_blue.lst_price, self.product_blue.product_tmpl_id.list_price + ) + self.assertEqual(self.product_blue.lst_price, self.product_blue.fix_price) + # to check skip_update_fix_price + self.assertNotEqual(self.product_blue.lst_price, self.product_red.lst_price) + self.assertEqual(self.product_red.lst_price, 1500.00) + + def test_update_variant_different_uom(self): + self.product_blue.write({"uom_id": self.uom_dozen}) + self.product_blue.with_context(uom=self.uom_dozen.id).lst_price = 2000.00 + self.assertEqual(self.product_blue.lst_price, self.product_blue.fix_price) + + def test_update_variant_no_multiple(self): + self.product_red.unlink() + self.product_blue.lst_price = 2000.00 + self.assertEqual(self.product_blue.lst_price, self.product_blue.fix_price) + + def test_update_template_variant(self): + self.product_blue.product_tmpl_id.list_price = 200 + for variant in self.product_blue.product_tmpl_id.product_variant_ids: + self.assertEqual(self.product_blue.list_price, variant.lst_price) diff --git a/product_variant_sale_price/views/product_views.xml b/product_variant_sale_price/views/product_views.xml new file mode 100644 index 000000000..833fa895d --- /dev/null +++ b/product_variant_sale_price/views/product_views.xml @@ -0,0 +1,57 @@ + + + + product.template.form.inherited + product.template + + + +
+ Setting the price here will update all variants. +
+
+
+
+ + product.product + + + + + + + + + + + product.template.attribute.value.tree.hide.extra + product.template.attribute.value + + + + 1 + + + + + product.template.attribute.value.form.hide.extra + product.template.attribute.value + + + + 1 + + + +
diff --git a/setup/_metapackage/pyproject.toml b/setup/_metapackage/pyproject.toml new file mode 100644 index 000000000..c451ae49b --- /dev/null +++ b/setup/_metapackage/pyproject.toml @@ -0,0 +1,11 @@ +[project] +name = "odoo-addons-oca-product-variant" +version = "17.0.20240411.0" +dependencies = [ + "odoo-addon-product_variant_sale_price>=17.0dev,<17.1dev", +] +classifiers=[ + "Programming Language :: Python", + "Framework :: Odoo", + "Framework :: Odoo :: 17.0", +]