mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
@@ -13,6 +13,7 @@
|
||||
name="secondary_uom_qty"
|
||||
attrs="{'readonly': [('state', 'in', ('done', 'cancel')), ('is_locked', '=', True)]}"
|
||||
force_save="1"
|
||||
optional="show"
|
||||
/>
|
||||
<field
|
||||
name="secondary_uom_id"
|
||||
@@ -21,6 +22,7 @@
|
||||
('product_id', '=', False)]"
|
||||
attrs="{'readonly': [('state', '!=', 'draft'), ('id', '!=', False)]}"
|
||||
options="{'no_create': True}"
|
||||
optional="show"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
@@ -39,6 +41,7 @@
|
||||
name="secondary_uom_qty"
|
||||
attrs="{'readonly': [('state', 'in', ('done', 'cancel')), ('is_locked', '=', True)]}"
|
||||
force_save="1"
|
||||
optional="show"
|
||||
/>
|
||||
<field
|
||||
name="secondary_uom_id"
|
||||
@@ -47,6 +50,7 @@
|
||||
('product_id', '=', False)]"
|
||||
attrs="{'readonly': [('state', '!=', 'draft'), ('id', '!=', False)]}"
|
||||
options="{'no_create': True}"
|
||||
optional="show"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<field
|
||||
name="secondary_uom_qty"
|
||||
attrs="{'column_invisible': [('parent.immediate_transfer', '=', True)], 'readonly': ['|', ('is_initial_demand_editable', '=', False), '&', '&', ('show_operations', '=', True), ('is_locked', '=', True), ('is_initial_demand_editable', '=', False)]}"
|
||||
optional="show"
|
||||
/>
|
||||
<field
|
||||
name="secondary_uom_id"
|
||||
@@ -23,6 +24,7 @@
|
||||
('product_id', '=', False)]"
|
||||
options="{'no_create': True}"
|
||||
attrs="{'column_invisible': [('parent.immediate_transfer', '=', True)], 'readonly': ['|', ('is_initial_demand_editable', '=', False), '&', '&', ('show_operations', '=', True), ('is_locked', '=', True), ('is_initial_demand_editable', '=', False)]}"
|
||||
optional="show"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath
|
||||
|
||||
Reference in New Issue
Block a user