mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
45 lines
1.7 KiB
XML
45 lines
1.7 KiB
XML
<openerp>
|
|
<data>
|
|
|
|
<record model="ir.ui.view" id="mrp_production_project_form_view">
|
|
<field name="name">mrp.production.project.inh.form</field>
|
|
<field name="model">mrp.production</field>
|
|
<field name="inherit_id" ref="mrp.mrp_production_form_view" />
|
|
<field name="arch" type="xml">
|
|
<field name="analytic_account_id" position="attributes">
|
|
<attribute name="invisible">1</attribute>
|
|
</field>
|
|
<field name="analytic_account_id" position="after">
|
|
<field name="project_id"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="act_project_2_production_all" model="ir.actions.act_window">
|
|
<field name="name">Manufacturing Orders</field>
|
|
<field name="res_model">mrp.production</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="context">{
|
|
'search_default_project_id': [active_id],
|
|
'default_project_id': active_id,
|
|
'active_test': False,
|
|
}
|
|
</field>
|
|
<field name="domain">[('project_id', '=', active_id)]</field>
|
|
</record>
|
|
|
|
|
|
<record id="view_mrp_production_filter_project" model="ir.ui.view">
|
|
<field name="name">mrp.production.filter.group.project</field>
|
|
<field name="model">mrp.production</field>
|
|
<field name="inherit_id" ref="mrp.view_mrp_production_filter"/>
|
|
<field name="arch" type="xml">
|
|
<group position="inside">
|
|
<filter string="Project" context="{'group_by':'project_id'}"/>
|
|
</group>
|
|
</field>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|