Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] fermente_mrp Polish BoM view and Menus #432

Open
wants to merge 6 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fermente_mrp/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"license": "AGPL-3",
"depends": ["mrp"],
"data": [
"views/menu.xml",
"views/mrp_production_view.xml",
"security/ir.model.access.csv",
],
Expand Down
38 changes: 35 additions & 3 deletions fermente_mrp/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,53 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-10 12:56+0000\n"
"PO-Revision-Date: 2025-01-10 12:56+0000\n"
"POT-Creation-Date: 2025-02-21 10:13+0000\n"
"PO-Revision-Date: 2025-02-21 10:13+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: fermente_mrp
#: model:ir.actions.act_window,name:fermente_mrp.action_fermente_mrp_bom_all
msgid "Bills of Materials"
msgstr "Fiches techniques"

#. module: fermente_mrp
#: model:ir.ui.menu,name:fermente_mrp.menu_fermente_mrp_bom
#: model:ir.ui.menu,name:fermente_mrp.menu_fermente_mrp_bom_all
msgid "Bills of Materials 📋"
msgstr "Fiches techniques 📋"

#. module: fermente_mrp
#: model_terms:ir.ui.view,arch_db:fermente_mrp.view_fermente_mrp_production_form_base
msgid "BoM"
msgstr "Fiche technique"

#. module: fermente_mrp
#: model:ir.actions.act_window,name:fermente_mrp.action_fermente_mrp_bom_finished_products
msgid "BoM for finished products"
msgstr "FT pour produits finis"

#. module: fermente_mrp
#: model:ir.ui.menu,name:fermente_mrp.menu_fermente_mrp_bom_finished_products
msgid "BoM for finished products 🥧"
msgstr "FT pour produits finis 🥧"

#. module: fermente_mrp
#: model:ir.actions.act_window,name:fermente_mrp.action_fermente_mrp_bom_intermediate_products
msgid "BoM for intermediate products"
msgstr "FT pour produits intermédiaires"

#. module: fermente_mrp
#: model:ir.ui.menu,name:fermente_mrp.menu_fermente_mrp_bom_intermediate_products
msgid "BoM for intermediate products 🧩"
msgstr "FT pour produits intermédiaires 🧩"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On avait voté la reconduction des icones énigmatiques en version 16 ? ;-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, sobriété first !

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pour le coup le 🧩 est utilisé en v12 pour symboliser qu'une ligne de recette a une recette, donc est un produit intérmédiaire
Pour les autres, ça me semble moins pertinent

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mais je vais pas me battre pour ça donc je vais les téj


#. module: fermente_mrp
#: model_terms:ir.ui.view,arch_db:fermente_mrp.view_fermente_mrp_production_form_base
msgid "Now, fill the quantity to indicate what you have produce."
msgstr "Maintenant, remplissez la quantité pour indiquer ce que vous avez produit."
msgstr ""
"Maintenant, remplissez la quantité pour indiquer ce que vous avez produit."
65 changes: 65 additions & 0 deletions fermente_mrp/views/menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2024 - Today: fermente (http://www.fermente.coop)
@author: Quentin DUPONT ([email protected])
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>


<!-- ************************************************************ -->
<!-- Hide standard menu -->
<!-- ************************************************************ -->
<menuitem id="mrp.menu_mrp_bom"
parent="mrp.menu_mrp_root"
groups="base.group_no_one"/>

<!-- ************************************************************ -->
<!-- Bill of Materials - Menus for Generic fermente View -->
<!-- ************************************************************ -->
<menuitem id="menu_fermente_mrp_bom"
name="Bills of Materials 📋"
parent="mrp.menu_mrp_root" sequence="1"/>

<record id="action_fermente_mrp_bom_all" model="ir.actions.act_window">
<field name="name">Bills of Materials</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="mrp.mrp_bom_tree_view"/>
</record>

<menuitem id="menu_fermente_mrp_bom_all"
name="Bills of Materials 📋"
parent="menu_fermente_mrp_bom" sequence="5"
action="action_fermente_mrp_bom_all"/>

<record id="action_fermente_mrp_bom_intermediate_products" model="ir.actions.act_window">
<field name="name">BoM for intermediate products</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="mrp.mrp_bom_tree_view"/>
<field name="context">{"search_default_filter_product_intermediate":1}</field>
</record>

<menuitem id="menu_fermente_mrp_bom_intermediate_products"
name="BoM for intermediate products 🧩"
parent="menu_fermente_mrp_bom" sequence="20"
action="action_fermente_mrp_bom_intermediate_products"/>

<record id="action_fermente_mrp_bom_finished_products" model="ir.actions.act_window">
<field name="name">BoM for finished products</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">mrp.bom</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="mrp.mrp_bom_tree_view"/>
<field name="context">{"search_default_filter_product_finished":1}</field>
</record>

<menuitem id="menu_fermente_mrp_bom_finished_products"
name="BoM for finished products 🥧"
parent="menu_fermente_mrp_bom" sequence="30"
action="action_fermente_mrp_bom_finished_products"/>

</odoo>
1 change: 0 additions & 1 deletion mrp_sale_grouped/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"report/report_sale_grouped.xml",
"report/ir_actions_report.xml",
"views/action.xml",
"views/menu.xml",
"views/view_mrp_sale_grouped.xml",
"views/view_sale_order.xml",
"wizard/view_sale_grouped_wizard.xml",
Expand Down
18 changes: 0 additions & 18 deletions mrp_sale_grouped/views/menu.xml

This file was deleted.

Loading