-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by legalsylvain
- Loading branch information
Showing
38 changed files
with
1,206 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
============= | ||
MRP BoM Print | ||
============= | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:142ae874033c2056bd94cf9f4442eb0b083ac9285691f116636e2c6183cd3a51 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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-grap%2Fgrap--odoo--custom-lightgray.png?logo=github | ||
:target: https://github.com/grap/grap-odoo-custom/tree/12.0/mrp_bom_print | ||
:alt: grap/grap-odoo-custom | ||
|
||
|badge1| |badge2| |badge3| | ||
|
||
Manage the various useful prints for Bill of Materials | ||
Printing allergens for selected or all Bill of Materials | ||
|
||
.. figure:: https://raw.githubusercontent.com/grap/grap-odoo-custom/12.0/mrp_bom_print/static/description/bom_printing_allergens_with_options.gif | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
Allergens table works only when using product product on Bill Of Material. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/grap/grap-odoo-custom/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/grap/grap-odoo-custom/issues/new?body=module:%20mrp_bom_print%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* GRAP | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Quentin Dupont ([email protected]) | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is part of the `grap/grap-odoo-custom <https://github.com/grap/grap-odoo-custom/tree/12.0/mrp_bom_print>`_ project on GitHub. | ||
|
||
You are welcome to contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from . import models | ||
from . import wizard | ||
from . import report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright (C) 2022 - Today: GRAP (http://www.grap.coop) | ||
# @author: Quentin Dupont ([email protected]) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "MRP BoM Print", | ||
"summary": "Manage the various useful prints for Bill of Materials", | ||
"version": "16.0.1.0.0", | ||
"category": "GRAP - Custom", | ||
"author": "GRAP", | ||
"website": "https://github.com/grap/grap-odoo-custom", | ||
"license": "AGPL-3", | ||
"depends": [ | ||
"mrp", | ||
# GRAP | ||
"mrp_bom_product_allergen", | ||
], | ||
"data": [ | ||
"security/ir_rule.xml", | ||
"security/ir.model.access.csv", | ||
"data/report_paperformat.xml", | ||
"report/report_bom_allergens.xml", | ||
"report/ir_actions_report.xml", | ||
"views/view_mrp_meal_category.xml", | ||
"views/view_product_template.xml", | ||
"wizard/view_bom_print_wizard.xml", | ||
"views/menu.xml", | ||
], | ||
"assets": { | ||
"web.report_assets_common": [ | ||
"mrp_bom_report_allergen/static/src/scss/mrp_bom_report_allergen.scss", | ||
], | ||
}, | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2022 - Today: GRAP (http://www.grap.coop) | ||
@author: Quentin DUPONT ([email protected]) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
<record id="paper_format_allergens" model="report.paperformat"> | ||
<field name="name">BoM Allergens Print Format</field> | ||
<field name="format">A4</field> | ||
<field name="page_height">0</field> | ||
<field name="page_width">0</field> | ||
<field name="orientation">Landscape</field> | ||
<field name="margin_top">5</field> | ||
<field name="margin_bottom">5</field> | ||
<field name="margin_left">2</field> | ||
<field name="margin_right">2</field> | ||
<field name="header_line" eval="False" /> | ||
<field name="header_spacing">10</field> | ||
<field name="dpi">90</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,248 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * mrp_bom_report_allergen | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 16.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2025-01-15 09:11+0000\n" | ||
"PO-Revision-Date: 2025-01-15 09:11+0000\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: mrp_bom_report_allergen | ||
#: model_terms:ir.ui.view,arch_db:mrp_bom_report_allergen.report_bom_allergens | ||
msgid "<span class=\"code_explanation_title\"><b>Allergens: </b></span>" | ||
msgstr "<span class=\"code_explanation_title\"><b>Allergènes: </b></span>" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,help:mrp_bom_report_allergen.field_bom_print_wizard_line__bom_meal_category | ||
#: model:ir.model.fields,help:mrp_bom_report_allergen.field_mrp_bom__meal_category_id | ||
#: model:ir.model.fields,help:mrp_bom_report_allergen.field_product_product__meal_category_id | ||
#: model:ir.model.fields,help:mrp_bom_report_allergen.field_product_template__meal_category_id | ||
msgid "" | ||
"Add a Meal Category to order Products in BoM Allergen report. E.g. starter, " | ||
"main course, dessert" | ||
msgstr "" | ||
"Ajouter une Catégorie de Repas pour classer les Produits dans la table des Allergènes." | ||
"Exemple : Entrée, Plat, Dessert" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard_line__bom_allergens_ids | ||
msgid "Allergens" | ||
msgstr "Allergènes" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.actions.act_window,name:mrp_bom_report_allergen.action_mrp_bom_report_allergen_wizard | ||
#: model_terms:ir.ui.view,arch_db:mrp_bom_report_allergen.report_bom_allergens | ||
msgid "Allergens table" | ||
msgstr "Table des allergènes" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard_line__bom_id | ||
msgid "Bill Of Material" | ||
msgstr "Fiche technique" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model,name:mrp_bom_report_allergen.model_mrp_bom | ||
msgid "Bill of Material" | ||
msgstr "Fiche technique" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.actions.report,name:mrp_bom_report_allergen.bom_allergens | ||
msgid "BoM Allergens" | ||
msgstr "Allergènes" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model,name:mrp_bom_report_allergen.model_report_mrp_bom_report_allergen_report_bom_allergens | ||
msgid "BoM Allergens report" | ||
msgstr "Table des allergènes" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model_terms:ir.ui.view,arch_db:mrp_bom_report_allergen.view_bom_print_wizard_form | ||
msgid "Cancel" | ||
msgstr "Annuler" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.constraint,message:mrp_bom_report_allergen.constraint_mrp_meal_category_name_unique | ||
msgid "Category name already exists" | ||
msgstr "Ce nom de catégorie existe déjà" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model_terms:ir.ui.view,arch_db:mrp_bom_report_allergen.view_meal_category_form | ||
msgid "Category position number" | ||
msgstr "Numéro de position de la catégorie" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_mrp_meal_category__company_id | ||
msgid "Company" | ||
msgstr "Société" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard__create_uid | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard_line__create_uid | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_mrp_meal_category__create_uid | ||
msgid "Created by" | ||
msgstr "Crée par" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard__create_date | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard_line__create_date | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_mrp_meal_category__create_date | ||
msgid "Created on" | ||
msgstr "Crée le" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard__display_name | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard_line__display_name | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_mrp_meal_category__display_name | ||
msgid "Display Name" | ||
msgstr "Nom affiché" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard__option_allergens_only_code | ||
msgid "Display allergen code instead of their name" | ||
msgstr "Imprimer le code allergène au lieu du nom complet" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard__id | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard_line__id | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_mrp_meal_category__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,help:mrp_bom_report_allergen.field_bom_print_wizard_line__bom_allergens_ids | ||
msgid "Includes allergens of the product and its components" | ||
msgstr "Inclus les allergènes du produit et de ses composants" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard____last_update | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard_line____last_update | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_mrp_meal_category____last_update | ||
msgid "Last Modified on" | ||
msgstr "Dernière modification le" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard__write_uid | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard_line__write_uid | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_mrp_meal_category__write_uid | ||
msgid "Last Updated by" | ||
msgstr "Dernière modification par" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard__write_date | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard_line__write_date | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_mrp_meal_category__write_date | ||
msgid "Last Updated on" | ||
msgstr "Dernière modification le" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard__line_ids | ||
msgid "Lines" | ||
msgstr "Lignes" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model,name:mrp_bom_report_allergen.model_mrp_meal_category | ||
msgid "MRP Meal Category" | ||
msgstr "Catégorie de repas" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.actions.act_window,name:mrp_bom_report_allergen.action_meal_category | ||
#: model:ir.ui.menu,name:mrp_bom_report_allergen.menu_mrp_meal_category | ||
msgid "Meal Categories" | ||
msgstr "Catégories de repas" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_mrp_meal_category__name | ||
msgid "Meal Category" | ||
msgstr "Catégorie de repas" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard_line__bom_meal_category | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_mrp_bom__meal_category_id | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_product_product__meal_category_id | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_product_template__meal_category_id | ||
msgid "Meal category" | ||
msgstr "Catégorie de repas" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard__option_allergens_only_code_text | ||
msgid "Option Allergens Only Code Text" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,help:mrp_bom_report_allergen.field_mrp_meal_category__sequence | ||
msgid "" | ||
"Order Meal Category for BoM Allergen Report. E.g. starter, main course, " | ||
"dessert" | ||
msgstr "" | ||
"Classer les catégories de repas pour la Table des Allergènes." | ||
"Example : Entrée, Plat, Dessert" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#. odoo-python | ||
#: code:addons/mrp_bom_report_allergen/report/report_bom_allergens.py:0 | ||
#, python-format | ||
msgid "No category" | ||
msgstr "Sans catégorie" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model_terms:ir.ui.view,arch_db:mrp_bom_report_allergen.view_bom_print_wizard_form | ||
msgid "Print" | ||
msgstr "Imprimer" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model_terms:ir.ui.view,arch_db:mrp_bom_report_allergen.view_bom_print_wizard_form | ||
msgid "Print Allergen table" | ||
msgstr "Imprimer la table des allergènes" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.ui.menu,name:mrp_bom_report_allergen.menu_mrp_bom_report_allergen | ||
msgid "Print Allergens table" | ||
msgstr "Imprimer la table des allergènes" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard__option_print_meal_categories | ||
msgid "Print meal categories" | ||
msgstr "Imprimer les catégories de repas" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model,name:mrp_bom_report_allergen.model_product_template | ||
msgid "Product" | ||
msgstr "Produit" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_mrp_meal_category__sequence | ||
msgid "Sequence" | ||
msgstr "" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model.fields,field_description:mrp_bom_report_allergen.field_bom_print_wizard_line__wizard_id | ||
msgid "Wizard" | ||
msgstr "Assistant" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model,name:mrp_bom_report_allergen.model_bom_print_wizard | ||
msgid "Wizard for printing bill of materials" | ||
msgstr "Assistant pour imprimer les fiches techniques" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model:ir.model,name:mrp_bom_report_allergen.model_bom_print_wizard_line | ||
msgid "Wizard line for printing bill of materials" | ||
msgstr "Ligne dans l'assistant" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model_terms:ir.ui.view,arch_db:mrp_bom_report_allergen.view_bom_print_wizard_form | ||
msgid "🔧 Choose options" | ||
msgstr "🔧 Choisir les options" | ||
|
||
#. module: mrp_bom_report_allergen | ||
#: model_terms:ir.ui.view,arch_db:mrp_bom_report_allergen.view_bom_print_wizard_form | ||
msgid "🖨️ Choose BoMs to print" | ||
msgstr "🖨️ Choisir les Fiches techniques à imprimer" |
2 changes: 1 addition & 1 deletion
2
mrp_business/models/__init__.py → mrp_bom_report_allergen/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from . import mrp_bom | ||
from . import mrp_meal_category | ||
from . import product_product | ||
from . import product_template |
Oops, something went wrong.