From d5648bdb7be1b7069b9e07157b1ed5a45d5a529a Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Tue, 1 Nov 2022 12:19:34 +0100 Subject: [PATCH 01/14] [REF] split beesdoo_product into: - product_ingredients. - product_hazard. - sale_product_deposit. - product_expiration. - product_sale_limit_date. - product_scale_label. - product_barcode_generator. - beesdoo_product_label - product_label_print_request --- beesdoo_product_label/README.rst | 88 +++ beesdoo_product_label/__init__.py | 2 + beesdoo_product_label/__manifest__.py | 35 + beesdoo_product_label/data/product_label.xml | 69 ++ .../i18n/beesdoo_product_label.pot | 453 ++++++++++++ beesdoo_product_label/i18n/fr_BE.po | 653 ++++++++++++++++++ beesdoo_product_label/models/__init__.py | 2 + .../models/beesdoo_product_label.py | 23 + .../models/product_template.py | 55 ++ beesdoo_product_label/readme/CONTRIBUTORS.rst | 2 + beesdoo_product_label/readme/DESCRIPTION.rst | 2 + beesdoo_product_label/rename_beesdoo.py | 87 +++ .../security/ir.model.access.csv | 3 + .../static/description/index.html | 473 +++++++++++++ .../views/product_label_views.xml | 46 ++ .../views/product_template_views.xml | 35 + 16 files changed, 2028 insertions(+) create mode 100644 beesdoo_product_label/README.rst create mode 100644 beesdoo_product_label/__init__.py create mode 100644 beesdoo_product_label/__manifest__.py create mode 100644 beesdoo_product_label/data/product_label.xml create mode 100644 beesdoo_product_label/i18n/beesdoo_product_label.pot create mode 100644 beesdoo_product_label/i18n/fr_BE.po create mode 100644 beesdoo_product_label/models/__init__.py create mode 100644 beesdoo_product_label/models/beesdoo_product_label.py create mode 100644 beesdoo_product_label/models/product_template.py create mode 100644 beesdoo_product_label/readme/CONTRIBUTORS.rst create mode 100644 beesdoo_product_label/readme/DESCRIPTION.rst create mode 100644 beesdoo_product_label/rename_beesdoo.py create mode 100644 beesdoo_product_label/security/ir.model.access.csv create mode 100644 beesdoo_product_label/static/description/index.html create mode 100644 beesdoo_product_label/views/product_label_views.xml create mode 100644 beesdoo_product_label/views/product_template_views.xml diff --git a/beesdoo_product_label/README.rst b/beesdoo_product_label/README.rst new file mode 100644 index 000000000..d00e89870 --- /dev/null +++ b/beesdoo_product_label/README.rst @@ -0,0 +1,88 @@ +=============== +beesdoo_product +=============== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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-beescoop%2FObeesdoo-lightgray.png?logo=github + :target: https://github.com/beescoop/Obeesdoo/tree/12.0/beesdoo_product + :alt: beescoop/Obeesdoo + +|badge1| |badge2| |badge3| + +Modification of product module for the needs of beescoop + +- Adds the label bio/ethique/provenance. +- Adds hazard and FDS labels. +- Calculates total price with VAT and deposit price. +- Contains some facilitation for label printing. +- Adds a 'Comments' field for use on labels. +- Adds deadline for sale and consumption. +- Adds an 'Ingredients' field. +- Adds scale labels, sale units, and categories. +- Generates barcodes. + + - Name (`name`) + - Purchase Price (`purchase_price`) + - Purchase Unit of Measure (`uom_po_id`) + - Unit of Measure (`uom_id`) + + The only editable field is Purchase Price. + +**Table of contents** + +.. contents:: + :local: + +Changelog +========= + +12.0.1.4.0 (2022-07-08) +~~~~~~~~~~~~~~~~~~~~~~~ + +**Features** + +- If 'Automatically write suggested price' is enabled in the configuration: when + purchase price is changed in the 'Edit Price' menu, the sales price is now + automatically updated to the suggested price. (`#320 `_) + +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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* BEES coop - Cellule IT +* Coop IT Easy SC + +Contributors +~~~~~~~~~~~~ + +* BEES coop - Cellule IT +* Coop IT Easy SC + +Maintainers +~~~~~~~~~~~ + +This module is part of the `beescoop/Obeesdoo `_ project on GitHub. + +You are welcome to contribute. diff --git a/beesdoo_product_label/__init__.py b/beesdoo_product_label/__init__.py new file mode 100644 index 000000000..bc538baa8 --- /dev/null +++ b/beesdoo_product_label/__init__.py @@ -0,0 +1,2 @@ +from . import models +from .rename_beesdoo import rename_beesdoo diff --git a/beesdoo_product_label/__manifest__.py b/beesdoo_product_label/__manifest__.py new file mode 100644 index 000000000..f8d379235 --- /dev/null +++ b/beesdoo_product_label/__manifest__.py @@ -0,0 +1,35 @@ +# Copyright 2017 - 2020 BEES coop SCRLfs +# - Elouan Lebars +# - Rémy Taymans +# - Houssine BAKKALI +# - Manuel Claeys Bouuaert +# - Vincent Van Rossem +# - Elise Dupont +# - Thibault François +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "Beesdoo Product label", + "summary": """ + Adds the label bio/ethique/provenance. + """, + "author": "BEES coop - Cellule IT, Coop IT Easy SC", + "website": "https://github.com/beescoop/Obeesdoo", + "category": "Sales", + "version": "12.0.3.0.0", + "depends": [ + "product", + "account", + "sale", + "purchase", + "product_main_supplier", + ], + "data": [ + "data/product_label.xml", + "views/product_template_views.xml", + "views/product_label_views.xml", + "security/ir.model.access.csv", + ], + "installable": True, + "license": "AGPL-3", + "pre_init_hook": "rename_beesdoo", +} diff --git a/beesdoo_product_label/data/product_label.xml b/beesdoo_product_label/data/product_label.xml new file mode 100644 index 000000000..5140fdd8e --- /dev/null +++ b/beesdoo_product_label/data/product_label.xml @@ -0,0 +1,69 @@ + + + + + Label Bio ou Confiance + eco + #40ff00 + + + Agriculture raisonnée + eco + #ffa200 + + + Conventionnel + eco + #ff4000 + + + Belgique + local + #40ff00 + + + Europe + local + #ffa200 + + + Monde + local + #ff4000 + + + Label par tiers + fair + #40ff00 + + + Préserve l’intérêt + fair + #ffa200 + + + Aucune garantie + fair + #ff4000 + + + Intermédiaire coopératif + delivery + #40ff00 + + + Grossiste biologique + delivery + #ffa200 + + + Grossiste industriel + delivery + #ff4000 + + + Consignes + + + + diff --git a/beesdoo_product_label/i18n/beesdoo_product_label.pot b/beesdoo_product_label/i18n/beesdoo_product_label.pot new file mode 100644 index 000000000..c504dba85 --- /dev/null +++ b/beesdoo_product_label/i18n/beesdoo_product_label.pot @@ -0,0 +1,453 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * beesdoo_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.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: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__active +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__active +msgid "Active" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.printing_label_request_wizard +#: model_terms:ir.ui.view,arch_db:beesdoo_product.set_label_as_printed_wizard +msgid "Cancel" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__code +msgid "Category code" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_uom_category__type +msgid "Category type" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__color_code +msgid "Color Code" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__note +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__note +msgid "Comments" +msgstr "" + +#. module: beesdoo_product +#: model:account.tax.group,name:beesdoo_product.consignes_group_tax +msgid "Consignes" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__create_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__create_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__create_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__create_uid +msgid "Created by" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__create_date +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__create_date +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__create_date +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__create_date +msgid "Created on" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__deadline_for_consumption +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__deadline_for_consumption +msgid "Deadline for consumption(days)" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__deadline_for_sale +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__deadline_for_sale +msgid "Deadline for sale(days)" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__default_reference_unit +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__default_reference_unit +msgid "Default Reference Unit" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_deposit +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_deposit +msgid "Deposit Price" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__display_name +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__display_name +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__display_name +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__display_name +msgid "Display Name" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__display_unit +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__display_unit +msgid "Display Unit" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__display_weight +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__display_weight +msgid "Display Weight" +msgstr "" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Distance" +msgstr "" + +#. module: beesdoo_product +#: selection:beesdoo.product.label,type:0 +msgid "Distribution" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__eco_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__eco_label +msgid "Eco Label" +msgstr "" + +#. module: beesdoo_product +#: selection:beesdoo.product.hazard,type:0 +msgid "FDS" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__fds_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__fds_label +msgid "FDS label" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__fair_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__fair_label +msgid "Fair Label" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form +msgid "Generate Barcode" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__hazard_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__hazard_label +msgid "Hazard label" +msgstr "" + +#. module: beesdoo_product +#: model:ir.ui.menu,name:beesdoo_product.hazard_configuration_menu +msgid "Hazards" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__id +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__id +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__id +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__id +msgid "ID" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__ingredients +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__ingredients +msgid "Ingredient" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form +msgid "Label" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__label_last_printed +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__label_last_printed +msgid "Label last printed on" +msgstr "" + +#. module: beesdoo_product +#: model:ir.ui.menu,name:beesdoo_product.label_configuration_menu +msgid "Labels" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard____last_update +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label____last_update +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category____last_update +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard____last_update +msgid "Last Modified on" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__write_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__write_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__write_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__write_date +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__write_date +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__write_date +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__write_date +msgid "Last Updated on" +msgstr "" + +#. module: beesdoo_product +#: selection:beesdoo.product.label,type:0 +msgid "Local" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__local_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__local_label +msgid "Local Label" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__logo +msgid "Logo" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.product_template_search_view +msgid "Main Seller" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.product_template_search_view +msgid "Main Seller Product Code" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__name +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__name +msgid "Name" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__origin_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__origin_label +msgid "Origin Label" +msgstr "" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Other" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__label_to_be_printed +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__label_to_be_printed +msgid "Print label?" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__product_ids +msgid "Product" +msgstr "" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.action_hazards +msgid "Product Hazards" +msgstr "" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.action_labels +msgid "Product Labels" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_product_template +msgid "Product Template" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_uom_category +msgid "Product UoM Categories" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__purchase_price +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__purchase_price +msgid "Purchase Price" +msgstr "" + +#. module: beesdoo_product +#: code:addons/beesdoo_product/models/beesdoo_product.py:225 +#, python-format +msgid "Reference Unit and Display Unit should belong to the same category " +msgstr "" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.beesdoo_product_action_request_label_printing +#: model_terms:ir.ui.view,arch_db:beesdoo_product.printing_label_request_wizard +msgid "Request label printing" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_category +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_category +msgid "Scale Category" +msgstr "" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.action_scale_categories +#: model:ir.ui.menu,name:beesdoo_product.scale_categories_configuration_menu +msgid "Scale categories" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_category_code +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_category_code +msgid "Scale category code" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form +msgid "Scale labels" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_label_info_1 +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_label_info_1 +msgid "Scale lable info 1" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_label_info_2 +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_label_info_2 +msgid "Scale lable info 2" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__name +msgid "Scale name category" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_sale_unit +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_sale_unit +msgid "Scale sale unit" +msgstr "" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.beesdoo_product_action_set_label_as_printed +msgid "Set label as printed" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.set_label_as_printed_wizard +msgid "Set labels as printed" +msgstr "" + +#. module: beesdoo_product +#: selection:beesdoo.product.hazard,type:0 +msgid "Specific hazard" +msgstr "" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Surface" +msgstr "" + +#. module: beesdoo_product +#: sql_constraint:beesdoo.scale.category:0 +msgid "The code of the scale category must be unique !" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__several_tax_strategies_warning +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__several_tax_strategies_warning +msgid "This product can't be printed from the Point of Sale because several tax strategies were defined." +msgstr "" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Time" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_with_vat +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_with_vat +msgid "Total Sales Price with VAT" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_with_vat_by_unit +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_with_vat_by_unit +msgid "Total Sales Price with VAT by Reference Unit" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__type +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__type +msgid "Type" +msgstr "" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Unit" +msgstr "" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Volume" +msgstr "" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Weight" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_beesdoo_product_hazard +msgid "beesdoo.product.hazard" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_beesdoo_product_label +msgid "beesdoo.product.label" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_beesdoo_scale_category +msgid "beesdoo.scale.category" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_label_printing_wizard +msgid "label.printing.wizard" +msgstr "" + +#. module: beesdoo_product +#: selection:beesdoo.product.label,type:0 +msgid "Écologique" +msgstr "" + +#. module: beesdoo_product +#: selection:beesdoo.product.label,type:0 +msgid "Équitable" +msgstr "" + diff --git a/beesdoo_product_label/i18n/fr_BE.po b/beesdoo_product_label/i18n/fr_BE.po new file mode 100644 index 000000000..28406244d --- /dev/null +++ b/beesdoo_product_label/i18n/fr_BE.po @@ -0,0 +1,653 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * beesdoo_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-08-03 09:47+0000\n" +"PO-Revision-Date: 2020-08-03 09:47+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: beesdoo_product +#: model:ir.model.fields,help:beesdoo_product.field_res_config_settings__suggested_price_reference +msgid "" +"\n" +" Price on which the margin is applied when computing the " +"suggested\n" +" sale price.\n" +" - Margin on Supplier Price : Suggested sale price\n" +" = supplier price * (1 + margin / 100) (default)\n" +" - Margin on Sale Price: Suggested sale price\n" +" = supplier price * (1 / (1 - margin / 100))\n" +" " +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,help:beesdoo_product.field_product_product__suggested_price +#: model:ir.model.fields,help:beesdoo_product.field_product_template__suggested_price +msgid "" +"\n" +" This field computes a suggested price based on the 'Product Margin'\n" +" field on Partners (Vendors), if it's set, or otherwise on the " +"'Product\n" +" Margin' field in Product Categories (which has a default value).\n" +" " +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__active +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__active +msgid "Active" +msgstr "Actif" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.beesdoo_product_pricelist_action_adapt_sales_price +#: model_terms:ir.ui.view,arch_db:beesdoo_product.adapt_sales_price_wizard +msgid "Adapt Sales Price" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.adapt_sales_price_wizard +#: model_terms:ir.ui.view,arch_db:beesdoo_product.printing_label_request_wizard +#: model_terms:ir.ui.view,arch_db:beesdoo_product.set_label_as_printed_wizard +msgid "Cancel" +msgstr "Annuler" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__code +msgid "Category code" +msgstr "Code de catégorie" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_uom_category__type +msgid "Category type" +msgstr "Type de catégorie" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__color_code +msgid "Color Code" +msgstr "Code couleur" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__note +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__note +msgid "Comments" +msgstr "Commentaires" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: beesdoo_product +#: model:account.tax.group,name:beesdoo_product.consignes_group_tax +msgid "Consignes" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_res_partner +msgid "Contact" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.actions.act_window,help:beesdoo_product.pos_product_edit_price +#: model_terms:ir.actions.act_window,help:beesdoo_product.purchase_product_edit_price +#: model_terms:ir.actions.act_window,help:beesdoo_product.sale_product_edit_price +msgid "Create a new product" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__create_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__create_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__create_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__create_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__create_date +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__create_date +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__create_date +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__create_date +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__deadline_for_consumption +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__deadline_for_consumption +msgid "Deadline for consumption(days)" +msgstr "Date limite de consommation(jours)" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__deadline_for_sale +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__deadline_for_sale +msgid "Deadline for sale(days)" +msgstr "Date limite de vente(jours)" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__default_reference_unit +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__default_reference_unit +msgid "Default Reference Unit" +msgstr "Unité de référence par défaut" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_deposit +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_deposit +msgid "Deposit Price" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__display_name +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__display_name +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__display_name +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__display_name +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__display_name +msgid "Display Name" +msgstr "Nom affiché" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__display_unit +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__display_unit +msgid "Display Unit" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__display_weight +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__display_weight +msgid "Display Weight" +msgstr "" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Distance" +msgstr "" + +#. module: beesdoo_product +#: selection:beesdoo.product.label,type:0 +msgid "Distribution" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__eco_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__eco_label +msgid "Eco Label" +msgstr "" + +#. module: beesdoo_product +#: model:ir.ui.menu,name:beesdoo_product.menu_pos_edit_price +#: model:ir.ui.menu,name:beesdoo_product.menu_purchase_edit_price +#: model:ir.ui.menu,name:beesdoo_product.menu_sale_edit_price +msgid "Edit Price" +msgstr "" + +#. module: beesdoo_product +#: selection:beesdoo.product.hazard,type:0 +msgid "FDS" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__fds_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__fds_label +#, fuzzy +msgid "FDS label" +msgstr "Libellé FDS" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__fair_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__fair_label +msgid "Fair Label" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form +msgid "Generate Barcode" +msgstr "" + +#. module: beesdoo_product +#: selection:product.category,rounding_method:0 +msgid "Half" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__hazard_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__hazard_label +#, fuzzy +msgid "Hazard label" +msgstr "Libellé de dangerosité" + +#. module: beesdoo_product +#: model:ir.ui.menu,name:beesdoo_product.hazard_configuration_menu +msgid "Hazards" +msgstr "Dangers" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__id +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__id +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__id +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__id +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__id +msgid "ID" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__ingredients +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__ingredients +msgid "Ingredient" +msgstr "Ingrédient " + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form +msgid "Label" +msgstr "Libellé" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__label_last_printed +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__label_last_printed +msgid "Label last printed on" +msgstr "" + +#. module: beesdoo_product +#: model:ir.ui.menu,name:beesdoo_product.label_configuration_menu +msgid "Labels" +msgstr "Libellés" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard____last_update +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard____last_update +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label____last_update +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category____last_update +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__write_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__write_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__write_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__write_uid +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__write_date +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__write_date +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__write_date +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__write_date +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: beesdoo_product +#: selection:beesdoo.product.label,type:0 +msgid "Local" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__local_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__local_label +msgid "Local Label" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__logo +msgid "Logo" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__main_seller_id +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__main_seller_id +#: model_terms:ir.ui.view,arch_db:beesdoo_product.product_template_edit_price_tree_view +msgid "Main Seller" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__name +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__name +msgid "Name" +msgstr "Nom" + +#. module: beesdoo_product +#: code:addons/beesdoo_product/models/beesdoo_product.py:363 +#, python-format +msgid "No Vendor defined for product '%s'" +msgstr "" + +#. module: beesdoo_product +#: selection:res.config.settings,suggested_price_reference:0 +msgid "On Sale Price" +msgstr "" + +#. module: beesdoo_product +#: selection:res.config.settings,suggested_price_reference:0 +#, fuzzy +msgid "On Supplier Price" +msgstr "Liste de prix du fournisseur" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__origin_label +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__origin_label +msgid "Origin Label" +msgstr "" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Other" +msgstr "Autre" + +#. module: beesdoo_product +#: code:addons/beesdoo_product/models/beesdoo_product.py:28 +#: code:addons/beesdoo_product/models/beesdoo_product.py:433 +#, python-format +msgid "Percentages for Profit Margin must >= 0." +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_supplierinfo__price +msgid "Price" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.res_config_settings_view_form +msgid "" +"Price on which the margin is applied when computing the suggested sale price." +"
\n" +" - Margin on Supplier Price : Suggested sale " +"price = supplier price * (1 + margin / 100) (default)
\n" +" - Margin on Sale Price: Suggested sale price = " +"supplier price * (1 / (1 - margin / 100))" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__label_to_be_printed +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__label_to_be_printed +msgid "Print label?" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__product_ids +#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__product_ids +#: model_terms:ir.ui.view,arch_db:beesdoo_product.product_template_edit_price_tree_view +msgid "Product" +msgstr "Article" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_product_category +msgid "Product Category" +msgstr "Catégorie d'article" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.action_hazards +msgid "Product Hazards" +msgstr "Dangers d'article" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.action_labels +msgid "Product Labels" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_category__profit_margin +#: model:ir.model.fields,field_description:beesdoo_product.field_res_partner__profit_margin +#: model:ir.model.fields,field_description:beesdoo_product.field_res_users__profit_margin +msgid "Product Margin [%]" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_product_template +msgid "Product Template" +msgstr "Modèle d'article" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_uom_category +msgid "Product UoM Categories" +msgstr "Catégorie d'UdM" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.pos_product_edit_price +#: model:ir.actions.act_window,name:beesdoo_product.purchase_product_edit_price +#: model:ir.actions.act_window,name:beesdoo_product.sale_product_edit_price +#, fuzzy +msgid "Products" +msgstr "Article" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__purchase_price +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__purchase_price +msgid "Purchase Price" +msgstr "" + +#. module: beesdoo_product +#: code:addons/beesdoo_product/models/beesdoo_product.py:280 +#, python-format +msgid "Reference Unit and Display Unit should belong to the same category " +msgstr "" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.beesdoo_product_action_request_label_printing +#: model_terms:ir.ui.view,arch_db:beesdoo_product.printing_label_request_wizard +msgid "Request label printing" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_category__should_round_suggested_price +msgid "Round suggested price ?" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_category__rounding_method +msgid "Rounding Method" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_category__rounding_precision +msgid "Rounding Precision" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_category +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_category +msgid "Scale Category" +msgstr "" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.action_scale_categories +#: model:ir.ui.menu,name:beesdoo_product.scale_categories_configuration_menu +msgid "Scale categories" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_category_code +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_category_code +msgid "Scale category code" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form +msgid "Scale labels" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_label_info_1 +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_label_info_1 +msgid "Scale lable info 1" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_label_info_2 +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_label_info_2 +msgid "Scale lable info 2" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__name +msgid "Scale name category" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_sale_unit +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_sale_unit +msgid "Scale sale unit" +msgstr "" + +#. module: beesdoo_product +#: model:ir.actions.act_window,name:beesdoo_product.beesdoo_product_action_set_label_as_printed +msgid "Set label as printed" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.set_label_as_printed_wizard +msgid "Set labels as printed" +msgstr "" + +#. module: beesdoo_product +#: code:addons/beesdoo_product/models/beesdoo_product.py:231 +#, python-format +msgid "Several tax strategies (price_include) defined for %s" +msgstr "" + +#. module: beesdoo_product +#: selection:beesdoo.product.hazard,type:0 +msgid "Specific hazard" +msgstr "Danger spécifique" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__suggested_price +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__suggested_price +msgid "Suggested Price" +msgstr "" + +#. module: beesdoo_product +#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_category_form +msgid "Suggested Price Configuration" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_res_config_settings__suggested_price_reference +msgid "Suggested price reference for margin" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_product_supplierinfo +msgid "Supplier Pricelist" +msgstr "Liste de prix du fournisseur" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Surface" +msgstr "" + +#. module: beesdoo_product +#: sql_constraint:beesdoo.scale.category:0 +msgid "The code of the scale category must be unique !" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,help:beesdoo_product.field_product_supplierinfo__price +msgid "The price to purchase a product" +msgstr "Le prix pour l'achat d'un article" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Time" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_with_vat +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_with_vat +msgid "Total Sales Price with VAT" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_with_vat_by_unit +#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_with_vat_by_unit +msgid "Total Sales Price with VAT by Reference Unit" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__type +#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__type +msgid "Type" +msgstr "" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Unit" +msgstr "Unité" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Volume" +msgstr "" + +#. module: beesdoo_product +#: selection:uom.category,type:0 +msgid "Weight" +msgstr "Poids" + +#. module: beesdoo_product +#: model_terms:ir.actions.act_window,help:beesdoo_product.pos_product_edit_price +#: model_terms:ir.actions.act_window,help:beesdoo_product.purchase_product_edit_price +#: model_terms:ir.actions.act_window,help:beesdoo_product.sale_product_edit_price +msgid "" +"You must define a product for everything you purchase,\n" +" whether it's a physical product, a consumable or services." +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_adapt_sales_price_wizard +msgid "adapt.sales.price.wizard" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_beesdoo_product_hazard +msgid "beesdoo.product.hazard" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_beesdoo_product_label +msgid "beesdoo.product.label" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_beesdoo_scale_category +msgid "beesdoo.scale.category" +msgstr "" + +#. module: beesdoo_product +#: selection:product.category,rounding_method:0 +msgid "down" +msgstr "" + +#. module: beesdoo_product +#: model:ir.model,name:beesdoo_product.model_label_printing_wizard +msgid "label.printing.wizard" +msgstr "" + +#. module: beesdoo_product +#: selection:product.category,rounding_method:0 +msgid "up" +msgstr "" + +#. module: beesdoo_product +#: selection:beesdoo.product.label,type:0 +msgid "Écologique" +msgstr "" + +#. module: beesdoo_product +#: selection:beesdoo.product.label,type:0 +msgid "Équitable" +msgstr "" + +#~ msgid "Price at which the product is sold to customers." +#~ msgstr "Prix auquel l'article est vendu aux clients." diff --git a/beesdoo_product_label/models/__init__.py b/beesdoo_product_label/models/__init__.py new file mode 100644 index 000000000..fc5985d75 --- /dev/null +++ b/beesdoo_product_label/models/__init__.py @@ -0,0 +1,2 @@ +from . import product_template +from . import beesdoo_product_label diff --git a/beesdoo_product_label/models/beesdoo_product_label.py b/beesdoo_product_label/models/beesdoo_product_label.py new file mode 100644 index 000000000..58cb5a098 --- /dev/null +++ b/beesdoo_product_label/models/beesdoo_product_label.py @@ -0,0 +1,23 @@ +# Copyright 2020 Coop IT Easy SCRL fs +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + + +from odoo import fields, models + + +class BeesdooProductLabel(models.Model): + _name = "beesdoo.product.label" + _description = "beesdoo.product.label" + + name = fields.Char() + type = fields.Selection( + [ + ("eco", "Écologique"), + ("local", "Local"), + ("fair", "Équitable"), + ("delivery", "Distribution"), + ] + ) + color_code = fields.Char() + logo = fields.Binary(string="Logo") + active = fields.Boolean(default=True) diff --git a/beesdoo_product_label/models/product_template.py b/beesdoo_product_label/models/product_template.py new file mode 100644 index 000000000..7b7cce004 --- /dev/null +++ b/beesdoo_product_label/models/product_template.py @@ -0,0 +1,55 @@ +# Copyright 2020 Coop IT Easy SCRL fs +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + + +from odoo import api, fields, models +from odoo.exceptions import UserError +from odoo.tools.translate import _ + +from odoo.addons import decimal_precision as dp + + +class ProductTemplate(models.Model): + _inherit = "product.template" + + eco_label = fields.Many2one("beesdoo.product.label", domain=[("type", "=", "eco")]) + local_label = fields.Many2one( + "beesdoo.product.label", domain=[("type", "=", "local")] + ) + fair_label = fields.Many2one( + "beesdoo.product.label", domain=[("type", "=", "fair")] + ) + origin_label = fields.Many2one( + "beesdoo.product.label", domain=[("type", "=", "delivery")] + ) + + display_unit = fields.Many2one("uom.uom") + default_reference_unit = fields.Many2one("uom.uom") + display_weight = fields.Float( + compute="_compute_display_weight", + store=True, + digits=dp.get_precision("Stock Weight"), + ) + + note = fields.Text("Comments", copy=False) + + @api.multi + @api.depends("weight", "display_unit") + def _compute_display_weight(self): + for product in self: + product.display_weight = product.weight * product.display_unit.factor + + @api.multi + @api.constrains("display_unit", "default_reference_unit") + def _unit_same_category(self): + for product in self: + if ( + product.display_unit.category_id + != product.default_reference_unit.category_id + ): + raise UserError( + _( + "Reference Unit and Display Unit should belong to the " + "same category " + ) + ) diff --git a/beesdoo_product_label/readme/CONTRIBUTORS.rst b/beesdoo_product_label/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..5cf09c295 --- /dev/null +++ b/beesdoo_product_label/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* BEES coop - Cellule IT +* Coop IT Easy SC diff --git a/beesdoo_product_label/readme/DESCRIPTION.rst b/beesdoo_product_label/readme/DESCRIPTION.rst new file mode 100644 index 000000000..1df667510 --- /dev/null +++ b/beesdoo_product_label/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +- Adds organic, local, fairtrade and origin labels on product templates (“Label” tab) +- Adds a 'Comments' field on product templates for use on labels (“Label” tab) diff --git a/beesdoo_product_label/rename_beesdoo.py b/beesdoo_product_label/rename_beesdoo.py new file mode 100644 index 000000000..48e543b52 --- /dev/null +++ b/beesdoo_product_label/rename_beesdoo.py @@ -0,0 +1,87 @@ +# Copyright 2022 Coop IT Easy SC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +"""This module was previously beesdoo_shift before it was moved to the OCA. +beesdoo_shift is presently an empty module that depends on this module. When +this module is installed, it should convert all data from the beesdoo_shift +module to be useable by this module. +""" + +import logging + +_logger = logging.getLogger(__name__) + +MODELS_TO_RENAME = {} +XMLIDS_TO_RENAME = [ + ("beesdoo_product.eco_green", "beesdoo_product_label.eco_green"), + ("beesdoo_product.eco_red", "beesdoo_product_label.eco_red"), + ("beesdoo_product.eco_orange", "beesdoo_product_label.eco_orange"), + ("beesdoo_product.local_green", "beesdoo_product_label.local_green"), + ("beesdoo_product.local_orange", "beesdoo_product_label.local_orange"), + ("beesdoo_product.local_red", "beesdoo_product_label.local_red"), + ("beesdoo_product.fair_green", "beesdoo_product_label.fair_green"), + ("beesdoo_product.fair_orange", "beesdoo_product_label.fair_orange"), + ("beesdoo_product.fair_red", "beesdoo_product_label.fair_red"), + ("beesdoo_product.delivery_green", "beesdoo_product_label.delivery_green"), + ("beesdoo_product.delivery_orange", "beesdoo_product_label.delivery_orange"), + ("beesdoo_product.delivery_red", "beesdoo_product_label.delivery_red"), + ( + "beesdoo_product.consignes_group_tax", + "beesdoo_product_label.consignes_group_tax", + ), +] +OLD_MODULE_NAME = "beesdoo_product" +NEW_MODULE_NAME = "beesdoo_product_label" + + +def model_to_table(name): + return name.replace(".", "_") + + +def rename_beesdoo(cr): + cr.execute( + "SELECT id FROM ir_module_module " + "WHERE name=%s and state IN ('installed', 'to upgrade')", + (OLD_MODULE_NAME,), + ) + if not cr.fetchone(): + return + + from openupgradelib import openupgrade + + for origin, new in MODELS_TO_RENAME.items(): + table_origin = model_to_table(origin) + table_new = model_to_table(new) + if openupgrade.table_exists(cr, table_origin) and not openupgrade.table_exists( + cr, table_new + ): + _logger.info("renaming table {} to {}".format(table_origin, table_new)) + openupgrade.rename_tables(cr, [(table_origin, table_new)]) + + _logger.info("renaming model {} to {}".format(origin, new)) + openupgrade.rename_models(cr, [(origin, new)]) + + _logger.info("renaming xmlids") + openupgrade.rename_xmlids(cr, XMLIDS_TO_RENAME) + + _logger.info( + "transferring ir_model_data from {} to {}".format( + OLD_MODULE_NAME, NEW_MODULE_NAME + ) + ) + openupgrade.logged_query( + cr, + """ + UPDATE ir_model_data SET module = 'beesdoo_product_label' + WHERE module = 'beesdoo_product' AND + name LIKE 'model_beesdoo_product_label%' + """, + ) + openupgrade.logged_query( + cr, + """ + UPDATE ir_model_data SET module = 'beesdoo_product_label' + WHERE module = 'beesdoo_product' AND + name LIKE 'field_beesdoo_product_label%' + """, + ) diff --git a/beesdoo_product_label/security/ir.model.access.csv b/beesdoo_product_label/security/ir.model.access.csv new file mode 100644 index 000000000..895837bf3 --- /dev/null +++ b/beesdoo_product_label/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +beesdoo_product_label_read_all,beesdoo.product.label Read All,model_beesdoo_product_label,,1,0,0,0 +beesdoo_product_label_all_access_sale_manager,beesdoo.product.label All Access Sale Manager,model_beesdoo_product_label,sales_team.group_sale_manager,1,1,1,1 diff --git a/beesdoo_product_label/static/description/index.html b/beesdoo_product_label/static/description/index.html new file mode 100644 index 000000000..d5a924a67 --- /dev/null +++ b/beesdoo_product_label/static/description/index.html @@ -0,0 +1,473 @@ + + + + + + +beesdoo_product + + + +
+

beesdoo_product

+ + +

Beta License: AGPL-3 beescoop/obeesdoo

+

Modification of product module for the needs of beescoop

+
    +
  • Adds the label bio/ethique/provenance.

    +
  • +
  • Adds hazard and FDS labels.

    +
  • +
  • Adds a main seller.

    +
  • +
  • Calculates total price with VAT and deposit price.

    +
  • +
  • Contains some facilitation for label printing.

    +
  • +
  • Adds a ‘Comments’ field for use on labels.

    +
  • +
  • Adds deadline for sale and consumption.

    +
  • +
  • Adds an ‘Ingredients’ field.

    +
  • +
  • Adds scale labels, sale units, and categories.

    +
  • +
  • Generates barcodes.

    +
  • +
  • Adds a ‘Suggested Price’ field on products, and a ‘Product Margin’ field on Partners (Vendors) and Product Categories. +The first margin is used if set, otherwise the second margin (which has a default value) is used.

    +
  • +
  • The reference price on which this margin is applied (supplier price or sale price) +can be selected in the general settings.

    +
  • +
  • Also, sale and supplier taxes that are of type ‘percentage’ and that are marked as ‘included in price’ +are taken into account when computing the suggested price.

    +
  • +
  • Round suggested price to 5 cents

    +
  • +
  • Adds “Edit Price” submenu on Point Of Sale, Purchase and Sale modules. +The user lands on an editable List View with the following columns :

    +
      +
    • Name (name)
    • +
    • Main Seller (main_seller_id)
    • +
    • Purchase Price (purchase_price)
    • +
    • Purchase Unit of Measure (uom_po_id)
    • +
    • Suggested Price (suggested_price)
    • +
    • Sales Price (list_price)
    • +
    • Unit of Measure (uom_id)
    • +
    +

    The only editable field is Purchase Price. +Through “Action > Adapt Sales Price”, the user can, on the selected products, +adapt the Sales Price according to the Suggested Price.

    +
  • +
  • Allow searching a product given the product reference of the main +seller (also known as the product_code of the product.supplierinfo +object).

    +
  • +
+

Please note that this model makes assumptions when computing the suggested price:

+
    +
  • It supposes that each product has only one supplier and that products coming from multiple suppliers +occur as duplicated products with one supplier each.
  • +
+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Beescoop - Cellule IT
  • +
  • Coop IT Easy SC
  • +
+
+
+

Contributors

+
    +
  • Beescoop - Cellule IT
  • +
  • Coop IT Easy SC
  • +
+
+
+

Maintainers

+

This module is part of the beescoop/obeesdoo project on GitHub.

+

You are welcome to contribute.

+
+
+
+ + diff --git a/beesdoo_product_label/views/product_label_views.xml b/beesdoo_product_label/views/product_label_views.xml new file mode 100644 index 000000000..b8649dbb5 --- /dev/null +++ b/beesdoo_product_label/views/product_label_views.xml @@ -0,0 +1,46 @@ + + + + product.label.form + beesdoo.product.label + +
+ + + + + + + +
+
+
+ + + product.label.tree + beesdoo.product.label + + + + + + + + + + + + + Product Labels + beesdoo.product.label + tree,form + + + +
diff --git a/beesdoo_product_label/views/product_template_views.xml b/beesdoo_product_label/views/product_template_views.xml new file mode 100644 index 000000000..dff8b2c3e --- /dev/null +++ b/beesdoo_product_label/views/product_template_views.xml @@ -0,0 +1,35 @@ + + + + product.template.form + product.template + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From e2abb8e4be4e7c0f3907943425aade85321b31e5 Mon Sep 17 00:00:00 2001 From: Carmen Bianca BAKKER Date: Thu, 26 Jan 2023 13:38:24 +0100 Subject: [PATCH 02/14] [FIX] Repair module docstrings Signed-off-by: Carmen Bianca BAKKER --- beesdoo_product_label/rename_beesdoo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beesdoo_product_label/rename_beesdoo.py b/beesdoo_product_label/rename_beesdoo.py index 48e543b52..51c8b2a93 100644 --- a/beesdoo_product_label/rename_beesdoo.py +++ b/beesdoo_product_label/rename_beesdoo.py @@ -1,9 +1,9 @@ # Copyright 2022 Coop IT Easy SC # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -"""This module was previously beesdoo_shift before it was moved to the OCA. -beesdoo_shift is presently an empty module that depends on this module. When -this module is installed, it should convert all data from the beesdoo_shift +"""This module was previously part of beesdoo_product before it was moved to the +OCA. beesdoo_product is presently an empty module that depends on this module. +When this module is installed, it should convert data from the beesdoo_product module to be useable by this module. """ From b78cfae126eb230a8f25ee6e2f97380b4e9e2e57 Mon Sep 17 00:00:00 2001 From: Github GRAP Bot Date: Mon, 30 Jan 2023 00:27:40 +0000 Subject: [PATCH 03/14] [UPD] README.rst --- beesdoo_product_label/README.rst | 44 ++++++-------------------------- 1 file changed, 8 insertions(+), 36 deletions(-) diff --git a/beesdoo_product_label/README.rst b/beesdoo_product_label/README.rst index d00e89870..a47cc04e5 100644 --- a/beesdoo_product_label/README.rst +++ b/beesdoo_product_label/README.rst @@ -1,6 +1,6 @@ -=============== -beesdoo_product -=============== +===================== +Beesdoo Product label +===================== .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! @@ -14,54 +14,26 @@ beesdoo_product :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-beescoop%2FObeesdoo-lightgray.png?logo=github - :target: https://github.com/beescoop/Obeesdoo/tree/12.0/beesdoo_product + :target: https://github.com/beescoop/Obeesdoo/tree/12.0/beesdoo_product_label :alt: beescoop/Obeesdoo |badge1| |badge2| |badge3| -Modification of product module for the needs of beescoop - -- Adds the label bio/ethique/provenance. -- Adds hazard and FDS labels. -- Calculates total price with VAT and deposit price. -- Contains some facilitation for label printing. -- Adds a 'Comments' field for use on labels. -- Adds deadline for sale and consumption. -- Adds an 'Ingredients' field. -- Adds scale labels, sale units, and categories. -- Generates barcodes. - - - Name (`name`) - - Purchase Price (`purchase_price`) - - Purchase Unit of Measure (`uom_po_id`) - - Unit of Measure (`uom_id`) - - The only editable field is Purchase Price. +- Adds organic, local, fairtrade and origin labels on product templates (“Label” tab) +- Adds a 'Comments' field on product templates for use on labels (“Label” tab) **Table of contents** .. contents:: :local: -Changelog -========= - -12.0.1.4.0 (2022-07-08) -~~~~~~~~~~~~~~~~~~~~~~~ - -**Features** - -- If 'Automatically write suggested price' is enabled in the configuration: when - purchase price is changed in the 'Edit Price' menu, the sales price is now - automatically updated to the suggested price. (`#320 `_) - 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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -83,6 +55,6 @@ Contributors Maintainers ~~~~~~~~~~~ -This module is part of the `beescoop/Obeesdoo `_ project on GitHub. +This module is part of the `beescoop/Obeesdoo `_ project on GitHub. You are welcome to contribute. From 9a7c31f6374819a4a050b2871cd81637368aecf4 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Mon, 30 Jan 2023 00:33:17 +0000 Subject: [PATCH 04/14] [UPD] Update beesdoo_product_label.pot --- .../i18n/beesdoo_product_label.pot | 408 +++--------------- 1 file changed, 67 insertions(+), 341 deletions(-) diff --git a/beesdoo_product_label/i18n/beesdoo_product_label.pot b/beesdoo_product_label/i18n/beesdoo_product_label.pot index c504dba85..6c6845f04 100644 --- a/beesdoo_product_label/i18n/beesdoo_product_label.pot +++ b/beesdoo_product_label/i18n/beesdoo_product_label.pot @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * beesdoo_product +# * beesdoo_product_label # msgid "" msgstr "" @@ -13,440 +13,166 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__active -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__active +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__active msgid "Active" msgstr "" -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.printing_label_request_wizard -#: model_terms:ir.ui.view,arch_db:beesdoo_product.set_label_as_printed_wizard -msgid "Cancel" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__code -msgid "Category code" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_uom_category__type -msgid "Category type" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__color_code +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__color_code msgid "Color Code" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__note -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__note +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__note +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__note msgid "Comments" msgstr "" -#. module: beesdoo_product -#: model:account.tax.group,name:beesdoo_product.consignes_group_tax +#. module: beesdoo_product_label +#: model:account.tax.group,name:beesdoo_product_label.consignes_group_tax msgid "Consignes" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__create_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__create_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__create_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__create_uid +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__create_uid msgid "Created by" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__create_date -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__create_date -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__create_date -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__create_date +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__create_date msgid "Created on" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__deadline_for_consumption -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__deadline_for_consumption -msgid "Deadline for consumption(days)" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__deadline_for_sale -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__deadline_for_sale -msgid "Deadline for sale(days)" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__default_reference_unit -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__default_reference_unit +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__default_reference_unit +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__default_reference_unit msgid "Default Reference Unit" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_deposit -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_deposit -msgid "Deposit Price" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__display_name -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__display_name -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__display_name -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__display_name +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__display_name msgid "Display Name" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__display_unit -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__display_unit +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__display_unit +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__display_unit msgid "Display Unit" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__display_weight -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__display_weight +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__display_weight +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__display_weight msgid "Display Weight" msgstr "" -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Distance" -msgstr "" - -#. module: beesdoo_product +#. module: beesdoo_product_label #: selection:beesdoo.product.label,type:0 msgid "Distribution" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__eco_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__eco_label +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__eco_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__eco_label msgid "Eco Label" msgstr "" -#. module: beesdoo_product -#: selection:beesdoo.product.hazard,type:0 -msgid "FDS" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__fds_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__fds_label -msgid "FDS label" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__fair_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__fair_label +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__fair_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__fair_label msgid "Fair Label" msgstr "" -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form -msgid "Generate Barcode" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__hazard_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__hazard_label -msgid "Hazard label" -msgstr "" - -#. module: beesdoo_product -#: model:ir.ui.menu,name:beesdoo_product.hazard_configuration_menu -msgid "Hazards" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__id -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__id -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__id -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__id +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__id msgid "ID" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__ingredients -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__ingredients -msgid "Ingredient" -msgstr "" - -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form +#. module: beesdoo_product_label +#: model_terms:ir.ui.view,arch_db:beesdoo_product_label.product_view_form msgid "Label" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__label_last_printed -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__label_last_printed -msgid "Label last printed on" -msgstr "" - -#. module: beesdoo_product -#: model:ir.ui.menu,name:beesdoo_product.label_configuration_menu +#. module: beesdoo_product_label +#: model:ir.ui.menu,name:beesdoo_product_label.label_configuration_menu msgid "Labels" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard____last_update -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label____last_update -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category____last_update -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard____last_update +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label____last_update msgid "Last Modified on" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__write_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__write_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__write_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__write_uid +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__write_uid msgid "Last Updated by" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__write_date -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__write_date -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__write_date -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__write_date +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__write_date msgid "Last Updated on" msgstr "" -#. module: beesdoo_product +#. module: beesdoo_product_label #: selection:beesdoo.product.label,type:0 msgid "Local" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__local_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__local_label +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__local_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__local_label msgid "Local Label" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__logo +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__logo msgid "Logo" msgstr "" -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.product_template_search_view -msgid "Main Seller" -msgstr "" - -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.product_template_search_view -msgid "Main Seller Product Code" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__name -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__name +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__name msgid "Name" msgstr "" -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__origin_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__origin_label +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__origin_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__origin_label msgid "Origin Label" msgstr "" -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Other" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__label_to_be_printed -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__label_to_be_printed -msgid "Print label?" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__product_ids -msgid "Product" -msgstr "" - -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.action_hazards -msgid "Product Hazards" -msgstr "" - -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.action_labels +#. module: beesdoo_product_label +#: model:ir.actions.act_window,name:beesdoo_product_label.action_labels msgid "Product Labels" msgstr "" -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_product_template +#. module: beesdoo_product_label +#: model:ir.model,name:beesdoo_product_label.model_product_template msgid "Product Template" msgstr "" -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_uom_category -msgid "Product UoM Categories" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__purchase_price -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__purchase_price -msgid "Purchase Price" -msgstr "" - -#. module: beesdoo_product -#: code:addons/beesdoo_product/models/beesdoo_product.py:225 +#. module: beesdoo_product_label +#: code:addons/beesdoo_product_label/models/product_template.py:51 #, python-format msgid "Reference Unit and Display Unit should belong to the same category " msgstr "" -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.beesdoo_product_action_request_label_printing -#: model_terms:ir.ui.view,arch_db:beesdoo_product.printing_label_request_wizard -msgid "Request label printing" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_category -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_category -msgid "Scale Category" -msgstr "" - -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.action_scale_categories -#: model:ir.ui.menu,name:beesdoo_product.scale_categories_configuration_menu -msgid "Scale categories" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_category_code -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_category_code -msgid "Scale category code" -msgstr "" - -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form -msgid "Scale labels" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_label_info_1 -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_label_info_1 -msgid "Scale lable info 1" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_label_info_2 -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_label_info_2 -msgid "Scale lable info 2" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__name -msgid "Scale name category" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_sale_unit -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_sale_unit -msgid "Scale sale unit" -msgstr "" - -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.beesdoo_product_action_set_label_as_printed -msgid "Set label as printed" -msgstr "" - -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.set_label_as_printed_wizard -msgid "Set labels as printed" -msgstr "" - -#. module: beesdoo_product -#: selection:beesdoo.product.hazard,type:0 -msgid "Specific hazard" -msgstr "" - -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Surface" -msgstr "" - -#. module: beesdoo_product -#: sql_constraint:beesdoo.scale.category:0 -msgid "The code of the scale category must be unique !" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__several_tax_strategies_warning -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__several_tax_strategies_warning -msgid "This product can't be printed from the Point of Sale because several tax strategies were defined." -msgstr "" - -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Time" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_with_vat -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_with_vat -msgid "Total Sales Price with VAT" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_with_vat_by_unit -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_with_vat_by_unit -msgid "Total Sales Price with VAT by Reference Unit" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__type -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__type +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__type msgid "Type" msgstr "" -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Unit" -msgstr "" - -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Volume" -msgstr "" - -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Weight" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_beesdoo_product_hazard -msgid "beesdoo.product.hazard" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_beesdoo_product_label +#. module: beesdoo_product_label +#: model:ir.model,name:beesdoo_product_label.model_beesdoo_product_label msgid "beesdoo.product.label" msgstr "" -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_beesdoo_scale_category -msgid "beesdoo.scale.category" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_label_printing_wizard -msgid "label.printing.wizard" -msgstr "" - -#. module: beesdoo_product +#. module: beesdoo_product_label #: selection:beesdoo.product.label,type:0 msgid "Écologique" msgstr "" -#. module: beesdoo_product +#. module: beesdoo_product_label #: selection:beesdoo.product.label,type:0 msgid "Équitable" msgstr "" From dd666480df600911a36615e2def4def18865b2c4 Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Wed, 1 Mar 2023 11:20:01 +0100 Subject: [PATCH 05/14] [FIX] sale_product_deposit - add deposit tax group (it was originally in the wrong module) - fix call to the consigne group - translate the tax group to english --- beesdoo_product_label/__manifest__.py | 2 +- beesdoo_product_label/data/product_label.xml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/beesdoo_product_label/__manifest__.py b/beesdoo_product_label/__manifest__.py index f8d379235..4ba8a0ba2 100644 --- a/beesdoo_product_label/__manifest__.py +++ b/beesdoo_product_label/__manifest__.py @@ -15,7 +15,7 @@ "author": "BEES coop - Cellule IT, Coop IT Easy SC", "website": "https://github.com/beescoop/Obeesdoo", "category": "Sales", - "version": "12.0.3.0.0", + "version": "12.0.3.0.1", "depends": [ "product", "account", diff --git a/beesdoo_product_label/data/product_label.xml b/beesdoo_product_label/data/product_label.xml index 5140fdd8e..20032d8bf 100644 --- a/beesdoo_product_label/data/product_label.xml +++ b/beesdoo_product_label/data/product_label.xml @@ -61,9 +61,5 @@ delivery #ff4000 - - Consignes - - From 0209608f8e0f68c993174a4e4ddb4a19572d5099 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 3 Mar 2023 13:23:28 +0000 Subject: [PATCH 06/14] [UPD] Update beesdoo_product_label.pot --- beesdoo_product_label/i18n/beesdoo_product_label.pot | 5 ----- 1 file changed, 5 deletions(-) diff --git a/beesdoo_product_label/i18n/beesdoo_product_label.pot b/beesdoo_product_label/i18n/beesdoo_product_label.pot index 6c6845f04..508c4523e 100644 --- a/beesdoo_product_label/i18n/beesdoo_product_label.pot +++ b/beesdoo_product_label/i18n/beesdoo_product_label.pot @@ -29,11 +29,6 @@ msgstr "" msgid "Comments" msgstr "" -#. module: beesdoo_product_label -#: model:account.tax.group,name:beesdoo_product_label.consignes_group_tax -msgid "Consignes" -msgstr "" - #. module: beesdoo_product_label #: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__create_uid msgid "Created by" From 8937ac2c1ccfce28fdaa12a7a6e8b3f2d8b20bb4 Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Tue, 7 Feb 2023 14:08:12 +0100 Subject: [PATCH 07/14] [ADD] translations for beesdoo_product modules --- beesdoo_product_label/i18n/fr.po | 182 ++++++++ beesdoo_product_label/i18n/fr_BE.po | 653 ---------------------------- 2 files changed, 182 insertions(+), 653 deletions(-) create mode 100644 beesdoo_product_label/i18n/fr.po delete mode 100644 beesdoo_product_label/i18n/fr_BE.po diff --git a/beesdoo_product_label/i18n/fr.po b/beesdoo_product_label/i18n/fr.po new file mode 100644 index 000000000..28e9617c2 --- /dev/null +++ b/beesdoo_product_label/i18n/fr.po @@ -0,0 +1,182 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * beesdoo_product_label +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-02-06 14:42+0000\n" +"PO-Revision-Date: 2023-02-06 15:54+0100\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 3.2.2\n" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__active +msgid "Active" +msgstr "Actif" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__color_code +msgid "Color Code" +msgstr "Code couleur" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__note +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__note +msgid "Comments" +msgstr "Commentaires" + +#. module: beesdoo_product_label +#: model:account.tax.group,name:beesdoo_product_label.consignes_group_tax +msgid "Consignes" +msgstr "" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__default_reference_unit +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__default_reference_unit +msgid "Default Reference Unit" +msgstr "Unité de référence par défaut" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__display_name +msgid "Display Name" +msgstr "Afficher le nom" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__display_unit +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__display_unit +msgid "Display Unit" +msgstr "Afficher l'unité" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__display_weight +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__display_weight +msgid "Display Weight" +msgstr "Afficher le poids" + +#. module: beesdoo_product_label +#: selection:beesdoo.product.label,type:0 +msgid "Distribution" +msgstr "" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__eco_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__eco_label +msgid "Eco Label" +msgstr "Label bio" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__fair_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__fair_label +msgid "Fair Label" +msgstr "Label commerce équitable" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__id +msgid "ID" +msgstr "ID" + +#. module: beesdoo_product_label +#: model_terms:ir.ui.view,arch_db:beesdoo_product_label.product_view_form +msgid "Label" +msgstr "Étiquette" + +#. module: beesdoo_product_label +#: model:ir.ui.menu,name:beesdoo_product_label.label_configuration_menu +msgid "Labels" +msgstr "Étiquettes" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__write_uid +msgid "Last Updated by" +msgstr "Mis à jour par" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__write_date +msgid "Last Updated on" +msgstr "Mis à jour le" + +#. module: beesdoo_product_label +#: selection:beesdoo.product.label,type:0 +msgid "Local" +msgstr "Local" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__local_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__local_label +msgid "Local Label" +msgstr "Label circuit court" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__logo +msgid "Logo" +msgstr "" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__name +msgid "Name" +msgstr "Nom" + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_product__origin_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_product_template__origin_label +msgid "Origin Label" +msgstr "Label de provenance" + +#. module: beesdoo_product_label +#: model:ir.actions.act_window,name:beesdoo_product_label.action_labels +msgid "Product Labels" +msgstr "Étiquettes du produit" + +#. module: beesdoo_product_label +#: model:ir.model,name:beesdoo_product_label.model_product_template +msgid "Product Template" +msgstr "Modèle d'article" + +#. module: beesdoo_product_label +#: code:addons/beesdoo_product_label/models/product_template.py:51 +#, python-format +msgid "Reference Unit and Display Unit should belong to the same category " +msgstr "L'unité affichée et de référence doivent être de même catégorie " + +#. module: beesdoo_product_label +#: model:ir.model.fields,field_description:beesdoo_product_label.field_beesdoo_product_label__type +msgid "Type" +msgstr "" + +#. module: beesdoo_product_label +#: model:ir.model,name:beesdoo_product_label.model_beesdoo_product_label +msgid "beesdoo.product.label" +msgstr "" + +#. module: beesdoo_product_label +#: selection:beesdoo.product.label,type:0 +msgid "Écologique" +msgstr "" + +#. module: beesdoo_product_label +#: selection:beesdoo.product.label,type:0 +msgid "Équitable" +msgstr "" diff --git a/beesdoo_product_label/i18n/fr_BE.po b/beesdoo_product_label/i18n/fr_BE.po deleted file mode 100644 index 28406244d..000000000 --- a/beesdoo_product_label/i18n/fr_BE.po +++ /dev/null @@ -1,653 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * beesdoo_product -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-08-03 09:47+0000\n" -"PO-Revision-Date: 2020-08-03 09:47+0000\n" -"Last-Translator: <>\n" -"Language-Team: \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: beesdoo_product -#: model:ir.model.fields,help:beesdoo_product.field_res_config_settings__suggested_price_reference -msgid "" -"\n" -" Price on which the margin is applied when computing the " -"suggested\n" -" sale price.\n" -" - Margin on Supplier Price : Suggested sale price\n" -" = supplier price * (1 + margin / 100) (default)\n" -" - Margin on Sale Price: Suggested sale price\n" -" = supplier price * (1 / (1 - margin / 100))\n" -" " -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,help:beesdoo_product.field_product_product__suggested_price -#: model:ir.model.fields,help:beesdoo_product.field_product_template__suggested_price -msgid "" -"\n" -" This field computes a suggested price based on the 'Product Margin'\n" -" field on Partners (Vendors), if it's set, or otherwise on the " -"'Product\n" -" Margin' field in Product Categories (which has a default value).\n" -" " -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__active -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__active -msgid "Active" -msgstr "Actif" - -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.beesdoo_product_pricelist_action_adapt_sales_price -#: model_terms:ir.ui.view,arch_db:beesdoo_product.adapt_sales_price_wizard -msgid "Adapt Sales Price" -msgstr "" - -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.adapt_sales_price_wizard -#: model_terms:ir.ui.view,arch_db:beesdoo_product.printing_label_request_wizard -#: model_terms:ir.ui.view,arch_db:beesdoo_product.set_label_as_printed_wizard -msgid "Cancel" -msgstr "Annuler" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__code -msgid "Category code" -msgstr "Code de catégorie" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_uom_category__type -msgid "Category type" -msgstr "Type de catégorie" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__color_code -msgid "Color Code" -msgstr "Code couleur" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__note -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__note -msgid "Comments" -msgstr "Commentaires" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_res_config_settings -msgid "Config Settings" -msgstr "" - -#. module: beesdoo_product -#: model:account.tax.group,name:beesdoo_product.consignes_group_tax -msgid "Consignes" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_res_partner -msgid "Contact" -msgstr "" - -#. module: beesdoo_product -#: model_terms:ir.actions.act_window,help:beesdoo_product.pos_product_edit_price -#: model_terms:ir.actions.act_window,help:beesdoo_product.purchase_product_edit_price -#: model_terms:ir.actions.act_window,help:beesdoo_product.sale_product_edit_price -msgid "Create a new product" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__create_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__create_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__create_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__create_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__create_uid -msgid "Created by" -msgstr "Créé par" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__create_date -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__create_date -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__create_date -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__create_date -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__create_date -msgid "Created on" -msgstr "Créé le" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__deadline_for_consumption -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__deadline_for_consumption -msgid "Deadline for consumption(days)" -msgstr "Date limite de consommation(jours)" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__deadline_for_sale -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__deadline_for_sale -msgid "Deadline for sale(days)" -msgstr "Date limite de vente(jours)" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__default_reference_unit -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__default_reference_unit -msgid "Default Reference Unit" -msgstr "Unité de référence par défaut" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_deposit -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_deposit -msgid "Deposit Price" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__display_name -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__display_name -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__display_name -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__display_name -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__display_name -msgid "Display Name" -msgstr "Nom affiché" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__display_unit -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__display_unit -msgid "Display Unit" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__display_weight -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__display_weight -msgid "Display Weight" -msgstr "" - -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Distance" -msgstr "" - -#. module: beesdoo_product -#: selection:beesdoo.product.label,type:0 -msgid "Distribution" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__eco_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__eco_label -msgid "Eco Label" -msgstr "" - -#. module: beesdoo_product -#: model:ir.ui.menu,name:beesdoo_product.menu_pos_edit_price -#: model:ir.ui.menu,name:beesdoo_product.menu_purchase_edit_price -#: model:ir.ui.menu,name:beesdoo_product.menu_sale_edit_price -msgid "Edit Price" -msgstr "" - -#. module: beesdoo_product -#: selection:beesdoo.product.hazard,type:0 -msgid "FDS" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__fds_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__fds_label -#, fuzzy -msgid "FDS label" -msgstr "Libellé FDS" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__fair_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__fair_label -msgid "Fair Label" -msgstr "" - -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form -msgid "Generate Barcode" -msgstr "" - -#. module: beesdoo_product -#: selection:product.category,rounding_method:0 -msgid "Half" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__hazard_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__hazard_label -#, fuzzy -msgid "Hazard label" -msgstr "Libellé de dangerosité" - -#. module: beesdoo_product -#: model:ir.ui.menu,name:beesdoo_product.hazard_configuration_menu -msgid "Hazards" -msgstr "Dangers" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__id -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__id -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__id -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__id -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__id -msgid "ID" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__ingredients -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__ingredients -msgid "Ingredient" -msgstr "Ingrédient " - -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form -msgid "Label" -msgstr "Libellé" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__label_last_printed -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__label_last_printed -msgid "Label last printed on" -msgstr "" - -#. module: beesdoo_product -#: model:ir.ui.menu,name:beesdoo_product.label_configuration_menu -msgid "Labels" -msgstr "Libellés" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard____last_update -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard____last_update -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label____last_update -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category____last_update -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard____last_update -msgid "Last Modified on" -msgstr "Dernière modification le" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__write_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__write_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__write_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__write_uid -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__write_uid -msgid "Last Updated by" -msgstr "Dernière mise à jour par" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__write_date -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__write_date -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__write_date -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__write_date -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__write_date -msgid "Last Updated on" -msgstr "Dernière mise à jour le" - -#. module: beesdoo_product -#: selection:beesdoo.product.label,type:0 -msgid "Local" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__local_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__local_label -msgid "Local Label" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__logo -msgid "Logo" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__main_seller_id -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__main_seller_id -#: model_terms:ir.ui.view,arch_db:beesdoo_product.product_template_edit_price_tree_view -msgid "Main Seller" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__name -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__name -msgid "Name" -msgstr "Nom" - -#. module: beesdoo_product -#: code:addons/beesdoo_product/models/beesdoo_product.py:363 -#, python-format -msgid "No Vendor defined for product '%s'" -msgstr "" - -#. module: beesdoo_product -#: selection:res.config.settings,suggested_price_reference:0 -msgid "On Sale Price" -msgstr "" - -#. module: beesdoo_product -#: selection:res.config.settings,suggested_price_reference:0 -#, fuzzy -msgid "On Supplier Price" -msgstr "Liste de prix du fournisseur" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__origin_label -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__origin_label -msgid "Origin Label" -msgstr "" - -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Other" -msgstr "Autre" - -#. module: beesdoo_product -#: code:addons/beesdoo_product/models/beesdoo_product.py:28 -#: code:addons/beesdoo_product/models/beesdoo_product.py:433 -#, python-format -msgid "Percentages for Profit Margin must >= 0." -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_supplierinfo__price -msgid "Price" -msgstr "" - -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.res_config_settings_view_form -msgid "" -"Price on which the margin is applied when computing the suggested sale price." -"
\n" -" - Margin on Supplier Price : Suggested sale " -"price = supplier price * (1 + margin / 100) (default)
\n" -" - Margin on Sale Price: Suggested sale price = " -"supplier price * (1 / (1 - margin / 100))" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__label_to_be_printed -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__label_to_be_printed -msgid "Print label?" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_adapt_sales_price_wizard__product_ids -#: model:ir.model.fields,field_description:beesdoo_product.field_label_printing_wizard__product_ids -#: model_terms:ir.ui.view,arch_db:beesdoo_product.product_template_edit_price_tree_view -msgid "Product" -msgstr "Article" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_product_category -msgid "Product Category" -msgstr "Catégorie d'article" - -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.action_hazards -msgid "Product Hazards" -msgstr "Dangers d'article" - -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.action_labels -msgid "Product Labels" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_category__profit_margin -#: model:ir.model.fields,field_description:beesdoo_product.field_res_partner__profit_margin -#: model:ir.model.fields,field_description:beesdoo_product.field_res_users__profit_margin -msgid "Product Margin [%]" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_product_template -msgid "Product Template" -msgstr "Modèle d'article" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_uom_category -msgid "Product UoM Categories" -msgstr "Catégorie d'UdM" - -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.pos_product_edit_price -#: model:ir.actions.act_window,name:beesdoo_product.purchase_product_edit_price -#: model:ir.actions.act_window,name:beesdoo_product.sale_product_edit_price -#, fuzzy -msgid "Products" -msgstr "Article" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__purchase_price -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__purchase_price -msgid "Purchase Price" -msgstr "" - -#. module: beesdoo_product -#: code:addons/beesdoo_product/models/beesdoo_product.py:280 -#, python-format -msgid "Reference Unit and Display Unit should belong to the same category " -msgstr "" - -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.beesdoo_product_action_request_label_printing -#: model_terms:ir.ui.view,arch_db:beesdoo_product.printing_label_request_wizard -msgid "Request label printing" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_category__should_round_suggested_price -msgid "Round suggested price ?" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_category__rounding_method -msgid "Rounding Method" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_category__rounding_precision -msgid "Rounding Precision" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_category -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_category -msgid "Scale Category" -msgstr "" - -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.action_scale_categories -#: model:ir.ui.menu,name:beesdoo_product.scale_categories_configuration_menu -msgid "Scale categories" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_category_code -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_category_code -msgid "Scale category code" -msgstr "" - -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_form -msgid "Scale labels" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_label_info_1 -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_label_info_1 -msgid "Scale lable info 1" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_label_info_2 -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_label_info_2 -msgid "Scale lable info 2" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_scale_category__name -msgid "Scale name category" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__scale_sale_unit -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__scale_sale_unit -msgid "Scale sale unit" -msgstr "" - -#. module: beesdoo_product -#: model:ir.actions.act_window,name:beesdoo_product.beesdoo_product_action_set_label_as_printed -msgid "Set label as printed" -msgstr "" - -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.set_label_as_printed_wizard -msgid "Set labels as printed" -msgstr "" - -#. module: beesdoo_product -#: code:addons/beesdoo_product/models/beesdoo_product.py:231 -#, python-format -msgid "Several tax strategies (price_include) defined for %s" -msgstr "" - -#. module: beesdoo_product -#: selection:beesdoo.product.hazard,type:0 -msgid "Specific hazard" -msgstr "Danger spécifique" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__suggested_price -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__suggested_price -msgid "Suggested Price" -msgstr "" - -#. module: beesdoo_product -#: model_terms:ir.ui.view,arch_db:beesdoo_product.beesdoo_product_category_form -msgid "Suggested Price Configuration" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_res_config_settings__suggested_price_reference -msgid "Suggested price reference for margin" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_product_supplierinfo -msgid "Supplier Pricelist" -msgstr "Liste de prix du fournisseur" - -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Surface" -msgstr "" - -#. module: beesdoo_product -#: sql_constraint:beesdoo.scale.category:0 -msgid "The code of the scale category must be unique !" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,help:beesdoo_product.field_product_supplierinfo__price -msgid "The price to purchase a product" -msgstr "Le prix pour l'achat d'un article" - -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Time" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_with_vat -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_with_vat -msgid "Total Sales Price with VAT" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_product_product__total_with_vat_by_unit -#: model:ir.model.fields,field_description:beesdoo_product.field_product_template__total_with_vat_by_unit -msgid "Total Sales Price with VAT by Reference Unit" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_hazard__type -#: model:ir.model.fields,field_description:beesdoo_product.field_beesdoo_product_label__type -msgid "Type" -msgstr "" - -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Unit" -msgstr "Unité" - -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Volume" -msgstr "" - -#. module: beesdoo_product -#: selection:uom.category,type:0 -msgid "Weight" -msgstr "Poids" - -#. module: beesdoo_product -#: model_terms:ir.actions.act_window,help:beesdoo_product.pos_product_edit_price -#: model_terms:ir.actions.act_window,help:beesdoo_product.purchase_product_edit_price -#: model_terms:ir.actions.act_window,help:beesdoo_product.sale_product_edit_price -msgid "" -"You must define a product for everything you purchase,\n" -" whether it's a physical product, a consumable or services." -msgstr "" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_adapt_sales_price_wizard -msgid "adapt.sales.price.wizard" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_beesdoo_product_hazard -msgid "beesdoo.product.hazard" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_beesdoo_product_label -msgid "beesdoo.product.label" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_beesdoo_scale_category -msgid "beesdoo.scale.category" -msgstr "" - -#. module: beesdoo_product -#: selection:product.category,rounding_method:0 -msgid "down" -msgstr "" - -#. module: beesdoo_product -#: model:ir.model,name:beesdoo_product.model_label_printing_wizard -msgid "label.printing.wizard" -msgstr "" - -#. module: beesdoo_product -#: selection:product.category,rounding_method:0 -msgid "up" -msgstr "" - -#. module: beesdoo_product -#: selection:beesdoo.product.label,type:0 -msgid "Écologique" -msgstr "" - -#. module: beesdoo_product -#: selection:beesdoo.product.label,type:0 -msgid "Équitable" -msgstr "" - -#~ msgid "Price at which the product is sold to customers." -#~ msgstr "Prix auquel l'article est vendu aux clients." From 6ce8c6b6baeecce13e51b46ec8ff4ca26a09bbc3 Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Wed, 2 Aug 2023 14:40:29 +0200 Subject: [PATCH 08/14] [IMP] beesdoo_product_label: black, isort, prettier --- .../beesdoo_product_label/odoo/addons/beesdoo_product_label | 1 + setup/beesdoo_product_label/setup.py | 6 ++++++ 2 files changed, 7 insertions(+) create mode 120000 setup/beesdoo_product_label/odoo/addons/beesdoo_product_label create mode 100644 setup/beesdoo_product_label/setup.py diff --git a/setup/beesdoo_product_label/odoo/addons/beesdoo_product_label b/setup/beesdoo_product_label/odoo/addons/beesdoo_product_label new file mode 120000 index 000000000..6dd43785e --- /dev/null +++ b/setup/beesdoo_product_label/odoo/addons/beesdoo_product_label @@ -0,0 +1 @@ +../../../../beesdoo_product_label \ No newline at end of file diff --git a/setup/beesdoo_product_label/setup.py b/setup/beesdoo_product_label/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/beesdoo_product_label/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) From 27c409e357deeb247bc3e97f055ab0f32cc7574c Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Wed, 2 Aug 2023 14:46:56 +0200 Subject: [PATCH 09/14] [MIG] beesdoo_product_label: Migration to 13.0 --- beesdoo_product_label/__init__.py | 1 - beesdoo_product_label/__manifest__.py | 3 +- .../models/product_template.py | 6 +- beesdoo_product_label/rename_beesdoo.py | 87 ------------------- 4 files changed, 2 insertions(+), 95 deletions(-) delete mode 100644 beesdoo_product_label/rename_beesdoo.py diff --git a/beesdoo_product_label/__init__.py b/beesdoo_product_label/__init__.py index bc538baa8..0650744f6 100644 --- a/beesdoo_product_label/__init__.py +++ b/beesdoo_product_label/__init__.py @@ -1,2 +1 @@ from . import models -from .rename_beesdoo import rename_beesdoo diff --git a/beesdoo_product_label/__manifest__.py b/beesdoo_product_label/__manifest__.py index 4ba8a0ba2..0fc8b771f 100644 --- a/beesdoo_product_label/__manifest__.py +++ b/beesdoo_product_label/__manifest__.py @@ -15,7 +15,7 @@ "author": "BEES coop - Cellule IT, Coop IT Easy SC", "website": "https://github.com/beescoop/Obeesdoo", "category": "Sales", - "version": "12.0.3.0.1", + "version": "12.0.1.0.0", "depends": [ "product", "account", @@ -31,5 +31,4 @@ ], "installable": True, "license": "AGPL-3", - "pre_init_hook": "rename_beesdoo", } diff --git a/beesdoo_product_label/models/product_template.py b/beesdoo_product_label/models/product_template.py index 7b7cce004..1edd5c5fa 100644 --- a/beesdoo_product_label/models/product_template.py +++ b/beesdoo_product_label/models/product_template.py @@ -6,8 +6,6 @@ from odoo.exceptions import UserError from odoo.tools.translate import _ -from odoo.addons import decimal_precision as dp - class ProductTemplate(models.Model): _inherit = "product.template" @@ -28,18 +26,16 @@ class ProductTemplate(models.Model): display_weight = fields.Float( compute="_compute_display_weight", store=True, - digits=dp.get_precision("Stock Weight"), + digits="Stock Weight", ) note = fields.Text("Comments", copy=False) - @api.multi @api.depends("weight", "display_unit") def _compute_display_weight(self): for product in self: product.display_weight = product.weight * product.display_unit.factor - @api.multi @api.constrains("display_unit", "default_reference_unit") def _unit_same_category(self): for product in self: diff --git a/beesdoo_product_label/rename_beesdoo.py b/beesdoo_product_label/rename_beesdoo.py deleted file mode 100644 index 51c8b2a93..000000000 --- a/beesdoo_product_label/rename_beesdoo.py +++ /dev/null @@ -1,87 +0,0 @@ -# Copyright 2022 Coop IT Easy SC -# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). - -"""This module was previously part of beesdoo_product before it was moved to the -OCA. beesdoo_product is presently an empty module that depends on this module. -When this module is installed, it should convert data from the beesdoo_product -module to be useable by this module. -""" - -import logging - -_logger = logging.getLogger(__name__) - -MODELS_TO_RENAME = {} -XMLIDS_TO_RENAME = [ - ("beesdoo_product.eco_green", "beesdoo_product_label.eco_green"), - ("beesdoo_product.eco_red", "beesdoo_product_label.eco_red"), - ("beesdoo_product.eco_orange", "beesdoo_product_label.eco_orange"), - ("beesdoo_product.local_green", "beesdoo_product_label.local_green"), - ("beesdoo_product.local_orange", "beesdoo_product_label.local_orange"), - ("beesdoo_product.local_red", "beesdoo_product_label.local_red"), - ("beesdoo_product.fair_green", "beesdoo_product_label.fair_green"), - ("beesdoo_product.fair_orange", "beesdoo_product_label.fair_orange"), - ("beesdoo_product.fair_red", "beesdoo_product_label.fair_red"), - ("beesdoo_product.delivery_green", "beesdoo_product_label.delivery_green"), - ("beesdoo_product.delivery_orange", "beesdoo_product_label.delivery_orange"), - ("beesdoo_product.delivery_red", "beesdoo_product_label.delivery_red"), - ( - "beesdoo_product.consignes_group_tax", - "beesdoo_product_label.consignes_group_tax", - ), -] -OLD_MODULE_NAME = "beesdoo_product" -NEW_MODULE_NAME = "beesdoo_product_label" - - -def model_to_table(name): - return name.replace(".", "_") - - -def rename_beesdoo(cr): - cr.execute( - "SELECT id FROM ir_module_module " - "WHERE name=%s and state IN ('installed', 'to upgrade')", - (OLD_MODULE_NAME,), - ) - if not cr.fetchone(): - return - - from openupgradelib import openupgrade - - for origin, new in MODELS_TO_RENAME.items(): - table_origin = model_to_table(origin) - table_new = model_to_table(new) - if openupgrade.table_exists(cr, table_origin) and not openupgrade.table_exists( - cr, table_new - ): - _logger.info("renaming table {} to {}".format(table_origin, table_new)) - openupgrade.rename_tables(cr, [(table_origin, table_new)]) - - _logger.info("renaming model {} to {}".format(origin, new)) - openupgrade.rename_models(cr, [(origin, new)]) - - _logger.info("renaming xmlids") - openupgrade.rename_xmlids(cr, XMLIDS_TO_RENAME) - - _logger.info( - "transferring ir_model_data from {} to {}".format( - OLD_MODULE_NAME, NEW_MODULE_NAME - ) - ) - openupgrade.logged_query( - cr, - """ - UPDATE ir_model_data SET module = 'beesdoo_product_label' - WHERE module = 'beesdoo_product' AND - name LIKE 'model_beesdoo_product_label%' - """, - ) - openupgrade.logged_query( - cr, - """ - UPDATE ir_model_data SET module = 'beesdoo_product_label' - WHERE module = 'beesdoo_product' AND - name LIKE 'field_beesdoo_product_label%' - """, - ) From cfe226f1d4470bb2158771cb35498c4ebe9057a2 Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Wed, 2 Aug 2023 14:49:21 +0200 Subject: [PATCH 10/14] [MIG] beesdoo_product_label: Migration to 14.0 --- beesdoo_product_label/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beesdoo_product_label/__manifest__.py b/beesdoo_product_label/__manifest__.py index 0fc8b771f..f7011078f 100644 --- a/beesdoo_product_label/__manifest__.py +++ b/beesdoo_product_label/__manifest__.py @@ -15,7 +15,7 @@ "author": "BEES coop - Cellule IT, Coop IT Easy SC", "website": "https://github.com/beescoop/Obeesdoo", "category": "Sales", - "version": "12.0.1.0.0", + "version": "14.0.1.0.0", "depends": [ "product", "account", From 0a8ebe5e8b268d2be0b8e853e7d538dbd1f37caf Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Wed, 2 Aug 2023 14:50:40 +0200 Subject: [PATCH 11/14] [MIG] beesdoo_product_label: Migration to 15.0 --- beesdoo_product_label/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beesdoo_product_label/__manifest__.py b/beesdoo_product_label/__manifest__.py index f7011078f..0cd155b61 100644 --- a/beesdoo_product_label/__manifest__.py +++ b/beesdoo_product_label/__manifest__.py @@ -15,7 +15,7 @@ "author": "BEES coop - Cellule IT, Coop IT Easy SC", "website": "https://github.com/beescoop/Obeesdoo", "category": "Sales", - "version": "14.0.1.0.0", + "version": "15.0.1.0.0", "depends": [ "product", "account", From f7f3cdc1455245fed12ffcaa7723f445d413f92b Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Wed, 2 Aug 2023 14:51:33 +0200 Subject: [PATCH 12/14] [MIG] beesdoo_product_label: Migration to 16.0 --- beesdoo_product_label/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beesdoo_product_label/__manifest__.py b/beesdoo_product_label/__manifest__.py index 0cd155b61..c877bdbe1 100644 --- a/beesdoo_product_label/__manifest__.py +++ b/beesdoo_product_label/__manifest__.py @@ -15,7 +15,7 @@ "author": "BEES coop - Cellule IT, Coop IT Easy SC", "website": "https://github.com/beescoop/Obeesdoo", "category": "Sales", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "depends": [ "product", "account", From 98626e933f9b519e6a31cebb4fe4c598b8a49e09 Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Thu, 14 Sep 2023 16:11:57 +0200 Subject: [PATCH 13/14] [UPD] readme --- beesdoo_product_label/README.rst | 29 +++++-- .../static/description/index.html | 83 ++++--------------- 2 files changed, 38 insertions(+), 74 deletions(-) diff --git a/beesdoo_product_label/README.rst b/beesdoo_product_label/README.rst index a47cc04e5..4586d09ce 100644 --- a/beesdoo_product_label/README.rst +++ b/beesdoo_product_label/README.rst @@ -13,11 +13,14 @@ Beesdoo Product label .. |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-beescoop%2FObeesdoo-lightgray.png?logo=github - :target: https://github.com/beescoop/Obeesdoo/tree/12.0/beesdoo_product_label - :alt: beescoop/Obeesdoo +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fobeesdoo-lightgray.png?logo=github + :target: https://github.com/OCA/obeesdoo/tree/16.0/beesdoo_product_label + :alt: OCA/obeesdoo +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/obeesdoo-16-0/obeesdoo-16-0-beesdoo_product_label + :alt: Translate me on Weblate -|badge1| |badge2| |badge3| +|badge1| |badge2| |badge3| |badge4| - Adds organic, local, fairtrade and origin labels on product templates (“Label” tab) - Adds a 'Comments' field on product templates for use on labels (“Label” tab) @@ -30,10 +33,10 @@ Beesdoo Product label Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -55,6 +58,16 @@ Contributors Maintainers ~~~~~~~~~~~ -This module is part of the `beescoop/Obeesdoo `_ project on GitHub. +This module is maintained by the OCA. -You are welcome to contribute. +.. 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/obeesdoo `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/beesdoo_product_label/static/description/index.html b/beesdoo_product_label/static/description/index.html index d5a924a67..6f5404076 100644 --- a/beesdoo_product_label/static/description/index.html +++ b/beesdoo_product_label/static/description/index.html @@ -4,7 +4,7 @@ -beesdoo_product +Beesdoo Product label -
-

beesdoo_product

+
+

Beesdoo Product label

-

Beta License: AGPL-3 beescoop/obeesdoo

-

Modification of product module for the needs of beescoop

-
    -
  • Adds the label bio/ethique/provenance.

    -
  • -
  • Adds hazard and FDS labels.

    -
  • -
  • Adds a main seller.

    -
  • -
  • Calculates total price with VAT and deposit price.

    -
  • -
  • Contains some facilitation for label printing.

    -
  • -
  • Adds a ‘Comments’ field for use on labels.

    -
  • -
  • Adds deadline for sale and consumption.

    -
  • -
  • Adds an ‘Ingredients’ field.

    -
  • -
  • Adds scale labels, sale units, and categories.

    -
  • -
  • Generates barcodes.

    -
  • -
  • Adds a ‘Suggested Price’ field on products, and a ‘Product Margin’ field on Partners (Vendors) and Product Categories. -The first margin is used if set, otherwise the second margin (which has a default value) is used.

    -
  • -
  • The reference price on which this margin is applied (supplier price or sale price) -can be selected in the general settings.

    -
  • -
  • Also, sale and supplier taxes that are of type ‘percentage’ and that are marked as ‘included in price’ -are taken into account when computing the suggested price.

    -
  • -
  • Round suggested price to 5 cents

    -
  • -
  • Adds “Edit Price” submenu on Point Of Sale, Purchase and Sale modules. -The user lands on an editable List View with the following columns :

    -
      -
    • Name (name)
    • -
    • Main Seller (main_seller_id)
    • -
    • Purchase Price (purchase_price)
    • -
    • Purchase Unit of Measure (uom_po_id)
    • -
    • Suggested Price (suggested_price)
    • -
    • Sales Price (list_price)
    • -
    • Unit of Measure (uom_id)
    • -
    -

    The only editable field is Purchase Price. -Through “Action > Adapt Sales Price”, the user can, on the selected products, -adapt the Sales Price according to the Suggested Price.

    -
  • -
  • Allow searching a product given the product reference of the main -seller (also known as the product_code of the product.supplierinfo -object).

    -
  • -
-

Please note that this model makes assumptions when computing the suggested price:

+

Beta License: AGPL-3 OCA/obeesdoo Translate me on Weblate

    -
  • It supposes that each product has only one supplier and that products coming from multiple suppliers -occur as duplicated products with one supplier each.
  • +
  • Adds organic, local, fairtrade and origin labels on product templates (“Label” tab)
  • +
  • Adds a ‘Comments’ field on product templates for use on labels (“Label” tab)

Table of contents

@@ -440,10 +386,10 @@

beesdoo_product

Bug Tracker

-

Bugs are tracked on GitHub Issues. +

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 smashing it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -451,21 +397,26 @@

Credits

Authors

    -
  • Beescoop - Cellule IT
  • +
  • BEES coop - Cellule IT
  • Coop IT Easy SC

Contributors

    -
  • Beescoop - Cellule IT
  • +
  • BEES coop - Cellule IT
  • Coop IT Easy SC

Maintainers

-

This module is part of the beescoop/obeesdoo project on GitHub.

-

You are welcome to contribute.

+

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/obeesdoo project on GitHub.

+

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

From 8c989e5338c65f1534668fccbd714acfb10065f7 Mon Sep 17 00:00:00 2001 From: Victor Champonnois Date: Thu, 14 Sep 2023 16:52:11 +0200 Subject: [PATCH 14/14] [FIX] precommit --- beesdoo_product_label/data/product_label.xml | 4 +--- beesdoo_product_label/models/beesdoo_product_label.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/beesdoo_product_label/data/product_label.xml b/beesdoo_product_label/data/product_label.xml index 20032d8bf..13d921b83 100644 --- a/beesdoo_product_label/data/product_label.xml +++ b/beesdoo_product_label/data/product_label.xml @@ -1,6 +1,5 @@ - - + Label Bio ou Confiance eco @@ -61,5 +60,4 @@ delivery #ff4000 - diff --git a/beesdoo_product_label/models/beesdoo_product_label.py b/beesdoo_product_label/models/beesdoo_product_label.py index 58cb5a098..ffd519df0 100644 --- a/beesdoo_product_label/models/beesdoo_product_label.py +++ b/beesdoo_product_label/models/beesdoo_product_label.py @@ -19,5 +19,5 @@ class BeesdooProductLabel(models.Model): ] ) color_code = fields.Char() - logo = fields.Binary(string="Logo") + logo = fields.Binary() active = fields.Boolean(default=True)