diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-07-03 08:14:32 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-07-03 08:14:32 +0000 |
| commit | 7e7b1d59ea385d07adb2fea2424adf23c484097f (patch) | |
| tree | 691f0ddec36f019e38a5add1053cd3e91a505138 | |
| parent | aae539acdb726fbbd232938a61e0df5e6ddda43b (diff) | |
| parent | 3f91265277c06429f78276c5096e06b9a622eef5 (diff) | |
Merged in nathan-dev (pull request #42)
fix bug pkp quotation
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 12 |
1 files 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: |
