diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2026-02-25 09:41:17 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2026-02-25 09:41:17 +0700 |
| commit | a3ff90b7a2616a01535fc1968d4ac5bfdf9f3c26 (patch) | |
| tree | d3eb7a90aee08085c04a4ebe5343b46e4ac2dc20 /indoteknik_custom/models/purchase_order.py | |
| parent | 316b8257845d0df10153fa7e5e294a699ad17c56 (diff) | |
| parent | 75972376c64d133e4dcf8cb0808a60b36db07825 (diff) | |
Merge branch 'odoo-backup' into feature/api-altama-matches-so
# Conflicts:
# indoteknik_custom/__manifest__.py
# indoteknik_custom/models/__init__.py
Diffstat (limited to 'indoteknik_custom/models/purchase_order.py')
| -rwxr-xr-x | indoteknik_custom/models/purchase_order.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_order.py b/indoteknik_custom/models/purchase_order.py index dd0c5cd5..b0fea18b 100755 --- a/indoteknik_custom/models/purchase_order.py +++ b/indoteknik_custom/models/purchase_order.py @@ -931,7 +931,8 @@ class PurchaseOrder(models.Model): date_done = self.date_approve - day_extension = int(self.payment_term_id.line_ids.days) + # day_extension = int(self.payment_term_id.line_ids.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: |
