diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-12-20 10:19:27 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-12-20 10:19:27 +0700 |
| commit | 51d46234a7ab66c962d187681e030d445c6d069f (patch) | |
| tree | da502022357f22a5812c795ece16cebc4df58730 | |
| parent | d53c3431e3e0bee9433131e561a89e49393e1513 (diff) | |
Read-only purchase_price dan price_unit ketika approval_status terisi di sale.order
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index fed0b08d..ea0cc569 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -23,7 +23,7 @@ <field name="real_shipping_id"/> <field name="approval_status" /> <field name="sales_tax_id" domain="[('type_tax_use','=','sale')]" required="1"/> - <field name="carrier_id"/> + <field name="carrier_id" required="1"/> </field> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_unit']" position="attributes"> <attribute name="attrs"> @@ -31,7 +31,7 @@ 'readonly': [ '|', ('qty_invoiced', '>', 0), - ('parent.approval_status', '=', 'approved') + ('parent.approval_status', '!=', False) ] } </attribute> @@ -43,7 +43,7 @@ 'readonly': [ '|', ('parent.state', 'not in', ['draft', 'sent', 'sale']), - ('parent.approval_status', '=', 'approved') + ('parent.approval_status', '!=', False) ] } "/> |
