[FIX] account_reconcile_oca: Add context key skip_account_move_synchronization to avoid side effects

We need to define skip_account_move_synchronization in the context to avoid that when writing
the bank statement line, some values can be updated in the account.move.line making the information
inconsistent.

Related to https://github.com/OCA/account-reconcile/issues/779
This commit is contained in:
Víctor Martínez
2025-01-20 11:05:23 +01:00
parent 95b38bf186
commit 861ad0986c

View File

@@ -335,7 +335,7 @@
<field name="domain">[('journal_id', '=', active_id)]</field>
<field
name="context"
>{'default_journal_id': active_id, 'search_default_not_reconciled': True, 'view_ref': 'account_reconcile_oca.bank_statement_line_form_reconcile_view'}</field>
>{'default_journal_id': active_id, 'search_default_not_reconciled': True, 'view_ref': 'account_reconcile_oca.bank_statement_line_form_reconcile_view', 'skip_account_move_synchronization': True}</field>
<field name="view_mode">kanban,tree</field>
<field
name="view_ids"