Description
During migration from Odoo 13 to 14 using OpenUpgrade, the process fails in the account module post-migration step when executing:
fill_statement_lines_with_no_move(env)
Error
odoo.exceptions.UserError: You can't create a new statement line without a suspense account set on the BANK P.A journal.
Traceback excerpt:
File ".../post-migration.py", line 933, in migrate
fill_statement_lines_with_no_move(env)
File ".../post-migration.py", line 463, in fill_statement_lines_with_no_move
"partner_id",
File ".../account_bank_statement.py", line 1020, in _synchronize_to_moves
line_vals_list = st_line._prepare_move_line_default_vals()
File ".../account_bank_statement.py", line 760, in _prepare_move_line_default_vals
) % self.journal_id.display_name)
When investigating account_journal table, the field suspense_account_id is not yet created in the table
Description
During migration from Odoo 13 to 14 using OpenUpgrade, the process fails in the account module post-migration step when executing:
fill_statement_lines_with_no_move(env)
Error
odoo.exceptions.UserError: You can't create a new statement line without a suspense account set on the BANK P.A journal.
Traceback excerpt:
File ".../post-migration.py", line 933, in migrate
fill_statement_lines_with_no_move(env)
File ".../post-migration.py", line 463, in fill_statement_lines_with_no_move
"partner_id",
File ".../account_bank_statement.py", line 1020, in _synchronize_to_moves
line_vals_list = st_line._prepare_move_line_default_vals()
File ".../account_bank_statement.py", line 760, in _prepare_move_line_default_vals
) % self.journal_id.display_name)
When investigating account_journal table, the field suspense_account_id is not yet created in the table