diff options
| author | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-02-24 14:33:34 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <andrifebriyadiputra@gmail.com> | 2026-02-24 14:33:34 +0700 |
| commit | 75972376c64d133e4dcf8cb0808a60b36db07825 (patch) | |
| tree | 67f67e36c91f03a60356813b6bb8afa7167558ce | |
| parent | 09b1d9f475367b95759d6c7d466a48edf8ebac4e (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 0afa5155..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')), default=0) + 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: |
