From 3f91265277c06429f78276c5096e06b9a622eef5 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 3 Jul 2023 15:09:13 +0700 Subject: fix bug pkp quotation --- indoteknik_custom/models/sale_order.py | 12 +++--------- 1 file changed, 3 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: -- cgit v1.2.3