diff options
Diffstat (limited to 'indoteknik_custom/views/sale_order.xml')
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index f7f9c0ea..d2a59621 100755 --- a/indoteknik_custom/views/sale_order.xml +++ b/indoteknik_custom/views/sale_order.xml @@ -28,11 +28,15 @@ <field name="total_percent_margin"/> <field name="voucher_id" readonly="1" /> </field> + <field name="source_id" position="attributes"> + <attribute name="invisible">1</attribute> + </field> <field name="analytic_account_id" position="after"> <field name="customer_type" attrs="{'required': ['|', ('create_date', '>', '2023-06-28'), ('create_date', '=', False)]}"/> <field name="npwp" placeholder='99.999.999.9-999.999' attrs="{'required': ['|', ('create_date', '>', '2023-06-28'), ('create_date', '=', False)]}"/> <field name="sppkp" attrs="{'invisible': [('customer_type','!=','pkp')], 'required': [('customer_type', '=', 'pkp')]}"/> <field name="due_id" readonly="1"/> + <field name="source_id" domain="[('id', 'in', [32, 59, 60, 61])]" attrs="{'required':[('create_date', '>', '2023-09-10')]}"/> </field> <field name="partner_shipping_id" position="after"> <field name="real_shipping_id"/> @@ -56,11 +60,6 @@ } </attribute> </xpath> - <field name="source_id" position="attributes"> - <attribute name="domain">[('id', 'in', [32, 59, 60, 61])]</attribute> - <attribute name="attrs">{'required':[('create_date', '>', '2023-07-30')]} - </attribute> - </field> <xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_total']" position="after"> <field name="vendor_id" attrs="{'readonly': [('parent.approval_status', '=', 'approved')]}"/> <field name="purchase_price" attrs=" |
