mirror of
https://github.com/bringout/oca-ocb-mrp.git
synced 2026-04-26 15:12:06 +02:00
19.0 vanilla
This commit is contained in:
parent
accf5918df
commit
6e65e8c877
688 changed files with 225434 additions and 199401 deletions
|
|
@ -6,8 +6,11 @@
|
|||
<field name="inherit_id" ref="stock.stock_scrap_form_view2"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="owner_id" position="after">
|
||||
<field name="workorder_id" invisible="1"/>
|
||||
<field name="production_id" invisible="1"/>
|
||||
<field name="workorder_id" invisible="1" readonly="state == 'done'"/>
|
||||
<field name="production_id" invisible="1" readonly="state == 'done'"/>
|
||||
<field name="product_is_kit" invisible="1"/>
|
||||
<field name="product_template" invisible="1"/>
|
||||
<field name="bom_id" invisible="not product_is_kit" readonly="state == 'done'" required="product_is_kit"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -17,8 +20,11 @@
|
|||
<field name="inherit_id" ref="stock.stock_scrap_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="owner_id" position="after">
|
||||
<field name="workorder_id" domain="[('production_id', '=', product_id)]" attrs="{'invisible': [('workorder_id', '=', False)]}"/>
|
||||
<field name="production_id" domain="[('company_id', '=', company_id)]" attrs="{'invisible': [('production_id', '=', False)]}"/>
|
||||
<field name="workorder_id" domain="[('production_id', '=', product_id)]" invisible="not workorder_id" readonly="state == 'done'"/>
|
||||
<field name="production_id" domain="[('company_id', '=', company_id)]" invisible="not production_id" readonly="state == 'done'"/>
|
||||
<field name="product_is_kit" invisible="1"/>
|
||||
<field name="product_template" invisible="1"/>
|
||||
<field name="bom_id" invisible="not product_is_kit" readonly="state == 'done'" required="product_is_kit"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -28,6 +34,10 @@
|
|||
<field name="model">stock.scrap</field>
|
||||
<field name="inherit_id" ref="stock.stock_scrap_search_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='create_date']" position="after">
|
||||
<filter string="Draft" name="filter_draft" domain="[('state', '=', 'draft')]"/>
|
||||
<filter string="Done" name="filter_done" domain="[('state', '=', 'done')]"/>
|
||||
</xpath>
|
||||
<xpath expr="//filter[@name='transfer']" position="after">
|
||||
<filter string="Manufacturing Order" name="production_id" domain="[]" context="{'group_by':'production_id'}"/>
|
||||
</xpath>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue