summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/account_move.py
diff options
context:
space:
mode:
authorMqdd <ahmadmiqdad27@gmail.com>2025-12-18 13:29:07 +0700
committerMqdd <ahmadmiqdad27@gmail.com>2025-12-18 13:29:07 +0700
commit7399a88e6bab3993c2162d469878c0cf4c7da458 (patch)
treeb6ffbd617c34514373f24f5a788fc8475757c7f6 /indoteknik_custom/models/account_move.py
parent33e6fc960fc3dcdbb77eedbff6239b7763ace468 (diff)
parent9e2cfb1999a9b9051aabde64120577cb6058d5f9 (diff)
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into cr_renca_find
merge
Diffstat (limited to 'indoteknik_custom/models/account_move.py')
-rw-r--r--indoteknik_custom/models/account_move.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index e36b9920..b05ec7ff 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -330,7 +330,8 @@ class AccountMove(models.Model):
grand_total = 0
for idx, inv in enumerate(invs, start=1): # numbering
days_to_due = (inv.invoice_date_due - today).days if inv.invoice_date_due else 0
- grand_total += inv.amount_total
+ # grand_total += inv.amount_total
+ grand_total += inv.amount_residual
invoice_table_rows += f"""
<tr>
<td>{idx}</td>