Skip to content

Commit

Permalink
[ADD] New module custom_mrp_production_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
unaiberis committed Jun 24, 2024
1 parent 0ab4b60 commit 3cc031e
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
16 changes: 16 additions & 0 deletions custom_mrp_production_fields/__manifest__.py
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 custom_mrp_production_fields/views/mrp_production_views.xml
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>

0 comments on commit 3cc031e

Please sign in to comment.