diff options
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/purchase_order.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/views/purchase_order.xml b/indoteknik_custom/views/purchase_order.xml index 48a8cf6b..f209d18a 100644 --- a/indoteknik_custom/views/purchase_order.xml +++ b/indoteknik_custom/views/purchase_order.xml @@ -11,11 +11,11 @@ string="Synchronize Sale Order" type="object" class="oe_highlight oe_edit_only" - attrs="{'invisible': [('sale_order_id', '=', False)]}" + attrs="{'invisible': ['|', ('sale_order_id', '=', False), ('state', 'not in', ['draft'])]}" /> </div> <field name="date_order" position="before"> - <field name="sale_order_id"/> + <field name="sale_order_id" attrs="{'readonly': [('state', 'not in', ['draft'])]}"/> </field> </field> </record> |
