mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
@@ -13,6 +13,7 @@
|
||||
attrs="{'readonly': [('state', 'in', ('done', 'cancel')), ('is_locked', '=', True)]}"
|
||||
force_save="1"
|
||||
groups="uom.group_uom"
|
||||
optional="show"
|
||||
/>
|
||||
<field
|
||||
name="secondary_uom_id"
|
||||
@@ -22,6 +23,7 @@
|
||||
attrs="{'readonly': [('state', '!=', 'draft'), ('id', '!=', False)]}"
|
||||
options="{'no_create': True}"
|
||||
groups="uom.group_uom"
|
||||
optional="show"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
@@ -40,6 +42,7 @@
|
||||
attrs="{'readonly': [('state', 'in', ('done', 'cancel')), ('is_locked', '=', True)]}"
|
||||
force_save="1"
|
||||
groups="uom.group_uom"
|
||||
optional="show"
|
||||
/>
|
||||
<field
|
||||
name="secondary_uom_id"
|
||||
@@ -49,6 +52,7 @@
|
||||
attrs="{'readonly': [('state', '!=', 'draft'), ('id', '!=', False)]}"
|
||||
options="{'no_create': True}"
|
||||
groups="uom.group_uom"
|
||||
optional="show"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
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)]}"
|
||||
groups="uom.group_uom"
|
||||
optional="show"
|
||||
/>
|
||||
<field
|
||||
name="secondary_uom_id"
|
||||
@@ -24,6 +25,7 @@
|
||||
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)]}"
|
||||
groups="uom.group_uom"
|
||||
optional="show"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath
|
||||
|
||||
Reference in New Issue
Block a user