mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[ADD] mrp_project
================ MRP Project Link ================ This module links projects and tasks to *manufacturing orders* (MO) and *work orders* (WO). Usage ===== In a manufacturing order (MO), you can select a project to be attached to it. If none is selected, a project is automatically created when the MO is confirmed. When the MO starts, a task is created and assigned to the order.
This commit is contained in:
62
mrp_project/views/project_task_view.xml
Normal file
62
mrp_project/views/project_task_view.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record model="ir.ui.view" id="project_task_mrp_inh_search_view">
|
||||
<field name="name">project.task.mrp.inh.search</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="inherit_id" ref="project.view_task_search_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="mrp_production_id"/>
|
||||
<field name="workorder"/>
|
||||
</field>
|
||||
<filter string="Stage" position="after">
|
||||
<filter string="Manufacturing" name="Manufacturing" context="{'group_by':'mrp_production_id'}"/>
|
||||
<filter string="Workorder" name="Workorder" context="{'group_by': 'workorder'}"/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="project_task_mrp_inh_tree_view">
|
||||
<field name="name">project.task.mrp.inh.tree</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="inherit_id" ref="project.view_task_tree2"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="project_id" position="after">
|
||||
<field name="mrp_production_id"/>
|
||||
<field name="workorder"/>
|
||||
<field name="final_product" string="Product to Produce"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="project_task_mrp_form_view">
|
||||
<field name="name">project.task.mrp.inh.form</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="inherit_id" ref="project.view_task_form2"/>
|
||||
<field name="arch" type="xml">
|
||||
<notebook position="inside">
|
||||
<page string="MRP Data">
|
||||
<group name="group_mrp_data">
|
||||
<field name="mrp_production_id"/>
|
||||
<field name="workorder"/>
|
||||
<field name="final_product" string="Product to Produce"/>
|
||||
<separator colspan="4" string="Scheduled Products"/>
|
||||
<field name="production_scheduled_products"
|
||||
colspan="4"
|
||||
nolabel="1"
|
||||
attrs="{'invisible':['|', ('workorder', '!=', False), ('mrp_production_id', '=', False)]}"
|
||||
/>
|
||||
<label string="Please go to the manufacturing order to see the products to consume."
|
||||
colspan="4"
|
||||
for="production_scheduled_products"
|
||||
attrs="{'invisible': [('workorder', '=', False)]}"
|
||||
/>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user