diff options
| author | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-02-24 14:27:46 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-02-24 14:27:46 +0700 |
| commit | 09b1d9f475367b95759d6c7d466a48edf8ebac4e (patch) | |
| tree | 67f36a3f0d65054f088828c6563b7c2b9f940e66 | |
| parent | 1112947139e69732589352359105e7602d6539b2 (diff) | |
fix
| -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..0afa5155 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: |
