diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-08-30 10:13:44 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-08-30 10:13:44 +0700 |
| commit | 2719b8cdd45b356baa598255dcdbdd8e353478e7 (patch) | |
| tree | 25ee79c5a98ab5315d9c037e55b7b1f90c423778 /indoteknik_custom/models/automatic_purchase.py | |
| parent | f1b4d965f17184fb1a44c4bda759bd5a23f9df8d (diff) | |
payment term po cr
Diffstat (limited to 'indoteknik_custom/models/automatic_purchase.py')
| -rw-r--r-- | indoteknik_custom/models/automatic_purchase.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py index 3561fc0f..1d1322fa 100644 --- a/indoteknik_custom/models/automatic_purchase.py +++ b/indoteknik_custom/models/automatic_purchase.py @@ -220,6 +220,7 @@ class AutomaticPurchase(models.Model): # i start from zero (0) for i in range(page): new_po = self.env['purchase.order'].create([param_header]) + new_po.payment_term_id = new_po.partner_id.property_supplier_payment_term_id new_po.name = new_po.name + name + str(i + 1) self.env['automatic.purchase.match'].create([{ |
