| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <odoo> |
| 3 | <record id='view_mrp_landed_costs_form' model='ir.ui.view'> |
| 4 | <field name="name">mrp.landed.cost.form</field> |
| 5 | <field name="model">stock.landed.cost</field> |
| 6 | <field name="inherit_id" ref="stock_landed_costs.view_stock_landed_cost_form"/> |
| 7 | <field name="arch" type="xml"> |
| 8 | <field name="target_model" position="attributes"> |
| 9 | <attribute name="invisible">0</attribute> |
| 10 | <attribute name="groups">stock.group_stock_manager</attribute> |
| 11 | </field> |
| 12 | <field name="picking_ids" position="after"> |
| 13 | <field name="target_model" invisible="1" readonly="state == 'done'"/> |
| 14 | <field name="mrp_production_ids" |
| 15 | widget="many2many_tags" options="{'no_create_edit': True}" |
| 16 | invisible="target_model != 'manufacturing'" |
| 17 | readonly="state == 'done'" |
| 18 | domain="[('company_id', '=', company_id), ('move_finished_ids.is_in', '!=', False)]"/> |
| 19 | </field> |
| 20 | </field> |
| 21 | </record> |
| 22 | </odoo> |