diff options
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 12 | ||||
| -rw-r--r-- | indoteknik_custom/views/account_move_views.xml | 4 |
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> |
