Skip to content

Commit

Permalink
[FIX] account: Fix ensure_one method called on 'self' instead of 'st_…
Browse files Browse the repository at this point in the history
…line'

closes odoo#99664

X-original-commit: f950000
Signed-off-by: Olivier Colson (oco) <[email protected]>
Signed-off-by: Laurent Smet <[email protected]>
  • Loading branch information
smetl committed Sep 7, 2022
1 parent 5de336c commit 8003310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account/models/account_bank_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ def _synchronize_to_moves(self, changed_fields):
company_currency = journal.company_id.currency_id
journal_currency = journal.currency_id if journal.currency_id != company_currency else False

line_vals_list = self._prepare_move_line_default_vals()
line_vals_list = st_line._prepare_move_line_default_vals()
line_ids_commands = [(1, liquidity_lines.id, line_vals_list[0])]

if suspense_lines:
Expand Down

0 comments on commit 8003310

Please sign in to comment.