From 334f4e852d406079440ab121a81f569d813eadf8 Mon Sep 17 00:00:00 2001 From: william-andre Date: Tue, 24 Oct 2023 19:22:08 +0200 Subject: [PATCH] [FIX] account: temporary skip invoice sync MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Find out why the PoS has a different computation on the rounding lines. See `--test-tags .test_rounding_half_up_cash_and_bank` closes odoo/odoo#138140 Related: odoo/upgrade#5303 Related: odoo/enterprise#48980 Signed-off-by: William André (wan) --- addons/account/models/account_partial_reconcile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_partial_reconcile.py b/addons/account/models/account_partial_reconcile.py index d86198049e7..3e17fed99a5 100644 --- a/addons/account/models/account_partial_reconcile.py +++ b/addons/account/models/account_partial_reconcile.py @@ -168,7 +168,7 @@ class AccountPartialReconcile(models.Model): line_matching_number = dict(self.env.cr.fetchall()) - for line in amls: + for line in amls.with_context(skip_invoice_sync=True): if line.full_reconcile_id: line.matching_number = str(line.full_reconcile_id.id) elif line.matched_debit_ids or line.matched_credit_ids: