diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-25 11:41:45 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-25 11:41:45 +0700 |
| commit | 49863418d3cf9aea12cd9594ef5351648664027c (patch) | |
| tree | c0a9f10d5465e6050f0fb1717a4d211145b82c51 | |
| parent | cbbf60e2fbf86dd50397342ce171796e1f983448 (diff) | |
| parent | 75972376c64d133e4dcf8cb0808a60b36db07825 (diff) | |
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup
merge
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index c3ab71aa..6e09f3e9 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -633,7 +633,7 @@ class PurchaseOrder(models.Model): date_done = self.date_approve # day_extension = int(self.payment_term_id.line_ids.days) - day_extension = int(max(self.payment_term_id.line_ids.mapped('days'))) + day_extension = int(max(self.payment_term_id.line_ids.mapped('days'), default=0)) payment_schedule = date_done + timedelta(days=day_extension) if payment_schedule.weekday() == 0: |
