From c679bbf0232eef97f94b1e43b804deda96b845c2 Mon Sep 17 00:00:00 2001 From: yibudak Date: Fri, 29 Dec 2023 14:00:12 +0300 Subject: [PATCH] [IMP] Recompute amount currency with payment date --- account_check/models/account_check.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/account_check/models/account_check.py b/account_check/models/account_check.py index 160e9989..e925c7ea 100644 --- a/account_check/models/account_check.py +++ b/account_check/models/account_check.py @@ -691,9 +691,11 @@ def _recompute_operations_amount_currency(self): if op.origin._name == "account.payment": move_lines = op.origin.move_line_ids # partner_id = op.origin.partner_id - else: # Account.move + elif op.origin._name == "account.move": # partner_id = op.origin.partner_id move_lines = op.origin.line_ids + else: + continue # if partner_id.partner_currency_id == rec.company_currency_id: # continue