-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] New module custom_mrp_production_fields
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 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,16 @@ | ||
# -*- coding: utf-8 -*- | ||
{ | ||
'name': 'Custom MRP Production Fields', | ||
'version': '1.0', | ||
'category': 'Manufacturing', | ||
'summary': 'Adds custom fields to MRP Production', | ||
'author': 'AvanzOSC', | ||
'website': 'http://www.avanzosc.es', | ||
'license': 'AGPL-3', | ||
'depends': ['mrp_production_usability', 'sale_mrp'], | ||
'data': [ | ||
'views/mrp_production_views.xml', | ||
], | ||
'installable': True, | ||
'auto_install': False, | ||
} |
27 changes: 27 additions & 0 deletions
27
custom_mrp_production_fields/views/mrp_production_views.xml
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,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data> | ||
<record id="view_mrp_production_form_inherit" model="ir.ui.view"> | ||
<field name="name">mrp.production.form.inherit</field> | ||
<field name="model">mrp.production</field> | ||
<field name="inherit_id" ref="mrp.mrp_production_form_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//sheet/notebook/page[@name='general_information']/field[@name='date_planned_start']" position="after"> | ||
<field name="qty_rejected"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record id="view_mrp_production_tree_inherit" model="ir.ui.view"> | ||
<field name="name">mrp.production.tree.inherit</field> | ||
<field name="model">mrp.production</field> | ||
<field name="inherit_id" ref="mrp.mrp_production_tree_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//tree/field[@name='date_planned_start']" position="after"> | ||
<field name="operator_id"/> | ||
<field name="quality_responsible_id"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
</data> | ||
</odoo> |