summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-06-27 09:51:36 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-06-27 09:51:36 +0700
commit72888c5c59078195420f6a6da3ae1c65766390d7 (patch)
tree1307f20299032ed15eb7c94fa15ca4a78ae83669 /indoteknik_custom/views
parent25a124e690cfea45d69ac34f051f0ee8749cda83 (diff)
fix pkp non pkp quotation
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/account_move_views.xml2
-rw-r--r--indoteknik_custom/views/res_partner.xml4
-rwxr-xr-xindoteknik_custom/views/sale_order.xml6
3 files changed, 5 insertions, 7 deletions
diff --git a/indoteknik_custom/views/account_move_views.xml b/indoteknik_custom/views/account_move_views.xml
index 42262780..d11f3679 100644
--- a/indoteknik_custom/views/account_move_views.xml
+++ b/indoteknik_custom/views/account_move_views.xml
@@ -42,8 +42,6 @@
<button name="approve_new_due"
string="Approve"
type="object"
- class="mr-2 oe_highlight oe_edit_only"
- attrs="{'invisible': [('is_approve', '=', True)]}"
/>
<button name="due_extension_approval"
string="Ask Approval"
diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml
index 341d0076..c77d942b 100644
--- a/indoteknik_custom/views/res_partner.xml
+++ b/indoteknik_custom/views/res_partner.xml
@@ -6,7 +6,7 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
- <field name="vat" position="after">
+ <field name="npwp" position="after">
<field name="sppkp"/>
<field name="reference_number"/>
</field>
@@ -14,7 +14,7 @@
<field name="company_type_id"/>
<field name="group_partner_id"/>
</field>
- <field name="vat" position="before">
+ <field name="npwp" position="before">
<field name="customer_type"/>
</field>
</field>
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 450b3303..ea744d8b 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -27,9 +27,9 @@
<field name="total_percent_margin"/>
</field>
<field name="analytic_account_id" position="after">
- <field name="customer_type" required="1"/>
- <field name="sppkp" attrs="{'invisible': [('customer_type','!=','pkp')], 'required': [('customer_type','=','pkp')]}"/>
- <field name="npwp" attrs="{'invisible': [('customer_type','!=','pkp')], 'required': [('customer_type','=','pkp')]}"/>
+ <field name="customer_type" attrs="{'required': ['|', ('create_date', '&gt;', '2023-06-15'), ('create_date', '=', False)]}"/>
+ <field name="npwp" attrs="{'required': ['|', ('create_date', '&gt;', '2023-06-15'), ('create_date', '=', False)]}"/>
+ <field name="sppkp" attrs="{'invisible': [('customer_type','!=','pkp')], 'required': ['|', ('create_date', '&gt;', '2023-06-28'), ('create_date', '=', False)]}"/>
<field name="due_id" readonly="1"/>
</field>
<field name="partner_shipping_id" position="after">