[FIX] account: temporary skip invoice sync

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) <wan@odoo.com>
This commit is contained in:
william-andre
2023-10-25 11:37:23 +00:00
parent 30a37c10ec
commit 334f4e852d
@@ -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: