Skip to content

Commit

Permalink
Merge PR #412 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
github-grap-bot committed Jan 24, 2025
2 parents 46cf91d + ec2ee7f commit a665330
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
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/mrp_production_view.xml",
"security/ir.model.access.csv",
],
}
26 changes: 26 additions & 0 deletions fermente_mrp/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * fermente_mrp
#
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"
"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_terms:ir.ui.view,arch_db:fermente_mrp.view_fermente_mrp_production_form_base
msgid "BoM"
msgstr "Fiche technique"

#. 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."
39 changes: 39 additions & 0 deletions fermente_mrp/views/mrp_production_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2025 - 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>

<!-- ************************************************************ -->
<!-- MRP Production - Form -->
<!-- ************************************************************ -->


<!-- ******** INHERIT BASE VIEW **************************************************** -->
<record id="view_fermente_mrp_production_form_base" model="ir.ui.view">
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp.mrp_production_form_view" />
<field name="arch" type="xml">

<!-- Add UX help for user -->
<xpath expr="/form/sheet" position="before">
<div
class="alert alert-info"
role="alert"
attrs="{'invisible': [('state', 'not in', ('confirmed','progress'))]}"
>
Now, fill the quantity to indicate what you have produce.
</div>
</xpath>

<!-- Rename field -->
<xpath expr="//field[@name='bom_id']" position="attributes">
<attribute name="string">BoM</attribute>
</xpath>

</field>
</record>

</odoo>

0 comments on commit a665330

Please sign in to comment.