diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-08-01 10:51:53 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-08-01 10:51:53 +0700 |
| commit | a58a6148cb903cab6f34a4b5084df98436819c85 (patch) | |
| tree | 7475b963ff117d339cd50dec88f09c8eb3577781 | |
| parent | 8a618e118a8393e60736dffc4a02f4b3a354e914 (diff) | |
replace source sale order
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml index 9bed5c89..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"/> @@ -41,7 +45,7 @@ <field name="carrier_id" required="1"/> <field name="delivery_service_type" readonly="1"/> </field> - <field name="source_id" position="after"> + <field name="medium_id" position="after"> <field name="date_doc_kirim" readonly="1"/> <field name="notification" readonly="1"/> </field> @@ -56,9 +60,6 @@ } </attribute> </xpath> - <field name="source_id" position="attributes"> - <attribute name="invisible">1</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=" @@ -111,7 +112,6 @@ <field name="gross_amount" readonly="True"/> <field name="payment_type" readonly="True"/> <field name="payment_status" readonly="True"/> - <field name="source_id" domain="[('id', 'in', [32, 59, 60, 61])]" attrs="{'required':[('create_date', '>', '2023-09-10')]}"/> </group> </group> </page> |
