diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-04 14:34:57 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-04 14:34:57 +0700 |
| commit | 1f323138690f1edb6f5b4c82863173de6db0b6ab (patch) | |
| tree | 6638e9bc38bcde77aa72a4aeda60b71f26fb97b5 /indoteknik_custom/models | |
| parent | b89c7890d68936fe2504540813750909ab9a817e (diff) | |
| parent | 7e7b1d59ea385d07adb2fea2424adf23c484097f (diff) | |
Merge branch 'release' of bitbucket.org:altafixco/indoteknik-addons into release
Diffstat (limited to 'indoteknik_custom/models')
| -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: |
