mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] scrap_reason_code: Migration to 17.0
This commit is contained in:
@@ -8,10 +8,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group[@name='origin_grp']" position='after'>
|
||||
<field name="scrapped" invisible="1" />
|
||||
<group
|
||||
string="Reason Code"
|
||||
attrs="{'invisible': [('scrapped', '!=', True)]}"
|
||||
>
|
||||
<group string="Reason Code" invisible="not scrapped">
|
||||
<field name="reason_code_id" />
|
||||
</group>
|
||||
</xpath>
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<field name="inherit_id" ref="stock.stock_scrap_form_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group/group" position='inside'>
|
||||
<field name="reason_code_id" />
|
||||
<field name="allowed_reason_code_ids" invisible="1" />
|
||||
<field name="reason_code_id" readonly="state == 'done'" />
|
||||
<field name="allowed_reason_code_ids" invisible="True" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
@@ -19,8 +19,8 @@
|
||||
<field name="inherit_id" ref="stock.stock_scrap_tree_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='product_uom_id']" position='after'>
|
||||
<field name="reason_code_id" />
|
||||
<field name="allowed_reason_code_ids" invisible="1" />
|
||||
<field name="reason_code_id" readonly="state == 'done'" />
|
||||
<field name="allowed_reason_code_ids" invisible="True" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
@@ -30,8 +30,8 @@
|
||||
<field name="inherit_id" ref="stock.stock_scrap_form_view2" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group/group" position='inside'>
|
||||
<field name="reason_code_id" />
|
||||
<field name="allowed_reason_code_ids" invisible="1" />
|
||||
<field name="reason_code_id" readonly="state == 'done'" />
|
||||
<field name="allowed_reason_code_ids" invisible="True" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user