diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-09-03 17:28:16 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-09-03 17:28:16 +0700 |
| commit | 7cfdaabfa79c86da09762c2ba8851d3345195469 (patch) | |
| tree | a01bd2cf3826221c0cc5ae9b91ed0857ec691181 /base_accounting_kit | |
| parent | 1dbb07dbf4e45ebd681b439eae5de4e891e9d801 (diff) | |
fix bug payment term
Diffstat (limited to 'base_accounting_kit')
| -rwxr-xr-x | base_accounting_kit/models/credit_limit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base_accounting_kit/models/credit_limit.py b/base_accounting_kit/models/credit_limit.py index 5d37675..950cba7 100755 --- a/base_accounting_kit/models/credit_limit.py +++ b/base_accounting_kit/models/credit_limit.py @@ -172,7 +172,7 @@ class SaleOrder(models.Model): check_credit_limit = True term_days = 0 - for term_line in rec.payment_term_id.account_payment_term_line: + for term_line in rec.payment_term_id.line_ids: term_days += term_line.days if term_days == 0: check_credit_limit = False |
