Skip to content

Commit e2109ba

Browse files
Merge PR #417 into 16.0
Signed-off-by legalsylvain
2 parents e80ed43 + ce394f3 commit e2109ba

File tree

6 files changed

+32
-27
lines changed

6 files changed

+32
-27
lines changed

fermente_mrp_bom_form_view/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# OCA
1515
"web_widget_numeric_step",
1616
"mrp_bom_widget_section_and_note_one2many",
17+
"mrp_bom_produce_delay_in_hour",
1718
# GRAP
1819
"mrp_bom_tag",
1920
"mrp_bom_line_net_qty",

fermente_mrp_bom_form_view/views/view_mrp_bom.xml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,35 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
1010
<!-- MRP Bill of Materials - Form -->
1111
<!-- ************************************************************ -->
1212

13-
<record id="view_fermente_mrp_bom_form" model="ir.ui.view">
13+
14+
<!-- ******** INHERIT BASE VIEW **************************************************** -->
15+
<record id="view_fermente_mrp_bom_form_base" model="ir.ui.view">
16+
<field name="model">mrp.bom</field>
17+
<field name="inherit_id" ref="mrp.mrp_bom_form_view" />
18+
<field name="arch" type="xml">
19+
<!-- Hide fields -->
20+
<xpath expr="//field[@name='type']" position="attributes">
21+
<attribute name="invisible">1</attribute>
22+
</xpath>
23+
</field>
24+
</record>
25+
26+
27+
<!-- ******** INHERIT PRODUCE DELAY VIEW **************************************************** -->
28+
<record id="view_fermente_mrp_bom_form_produce_delay" model="ir.ui.view">
29+
<field name="model">mrp.bom</field>
30+
<field name="inherit_id" ref="mrp_bom_produce_delay_in_hour.view_mrp_bom_form_glue_module_produce_delay_add_fields" />
31+
<field name="arch" type="xml">
32+
33+
<xpath expr="//label[@for='produce_delay_in_hour']" position="attributes">
34+
<attribute name="string">Produce time</attribute>
35+
</xpath>
36+
37+
</field>
38+
</record>
39+
40+
<!-- ******** INHERIT SECTIONS AND NOTES VIEW **************************************************** -->
41+
<record id="view_fermente_mrp_bom_form_sections_and_notes" model="ir.ui.view">
1442
<field name="model">mrp.bom</field>
1543
<field name="inherit_id" ref="mrp_bom_widget_section_and_note_one2many.mrp_bom_form_view_section" />
1644
<field name="arch" type="xml">
@@ -89,4 +117,5 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
89117
</field>
90118
</record>
91119

120+
92121
</odoo>

mrp_bom_wizard_production/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"depends": [
1414
"mrp_bom_product_price_margin",
1515
"mrp_bom_simple_report",
16+
"mrp_bom_simple_packaging_description",
1617
],
1718
"data": [
1819
"security/ir.model.access.csv",
1920
"data/report_paperformat.xml",
2021
"report/report_bom_purchase_list.xml",
2122
"report/ir_actions_report.xml",
2223
"wizard/view_bom_print_purchase_list_wizard.xml",
23-
"views/mrp_bom.xml",
2424
"views/action.xml",
2525
"views/menu.xml",
2626
],

mrp_bom_wizard_production/models/mrp_bom.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ class MrpBom(models.Model):
99
_inherit = "mrp.bom"
1010

1111
currency_id = fields.Many2one(related="product_tmpl_id.currency_id")
12-
description_packaging = fields.Char(string="Packaging description")
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
- Button in wizard to create purchase and manufacturing orders ?
22
- How to handle nested of nested boms ? At the moment, take one level into account
3-
- Field scope bom.description_packaging in this module ?
43
- Fix test04

mrp_bom_wizard_production/views/mrp_bom.xml

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)