summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-07-04 14:34:57 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-07-04 14:34:57 +0700
commit1f323138690f1edb6f5b4c82863173de6db0b6ab (patch)
tree6638e9bc38bcde77aa72a4aeda60b71f26fb97b5
parentb89c7890d68936fe2504540813750909ab9a817e (diff)
parent7e7b1d59ea385d07adb2fea2424adf23c484097f (diff)
Merge branch 'release' of bitbucket.org:altafixco/indoteknik-addons into release
-rwxr-xr-xindoteknik_custom/models/sale_order.py12
-rw-r--r--indoteknik_custom/views/account_move_views.xml4
2 files changed, 7 insertions, 9 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index c5169420..ecd43960 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -459,15 +459,9 @@ class SaleOrder(models.Model):
parent_id = self.partner_id.parent_id
parent_id = parent_id if parent_id else self.partner_id
- for contact in self:
- partner_customer_type = contact.customer_type
- parent_id.customer_type = partner_customer_type
-
- partner_npwp = contact.npwp
- parent_id.npwp = partner_npwp
-
- partner_sppkp = contact.sppkp
- parent_id.sppkp = partner_sppkp
+ parent_id.customer_type = self.customer_type
+ parent_id.npwp = self.npwp
+ parent_id.sppkp = self.sppkp
def action_confirm(self):
for order in self:
diff --git a/indoteknik_custom/views/account_move_views.xml b/indoteknik_custom/views/account_move_views.xml
index 0c27ac33..2ba787f6 100644
--- a/indoteknik_custom/views/account_move_views.xml
+++ b/indoteknik_custom/views/account_move_views.xml
@@ -95,4 +95,8 @@
sequence="4"
action="due_extension_action"
/>
+ <menuitem id="menu_due_extension" name="Due Extesion"
+ parent="account.menu_finance_receivables"
+ action="due_extension_action" sequence="100"
+ groups="account.group_account_user"/>
</odoo>