diff options
| -rw-r--r-- | indoteknik_custom/views/stock_picking.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indoteknik_custom/views/stock_picking.xml b/indoteknik_custom/views/stock_picking.xml index d2c1b26f..9081a58e 100644 --- a/indoteknik_custom/views/stock_picking.xml +++ b/indoteknik_custom/views/stock_picking.xml @@ -15,7 +15,13 @@ /> </field> <field name="origin" position="after"> - <field name="account_id"/> + <field name="account_id" + attrs="{ + 'readonly': [['state', 'in', ['done', 'cancel']]], + 'invisible': [['is_internal_use', '=', False]], + 'required': [['is_internal_use', '=', True]] + }" + /> </field> </field> </record> |
