Skip to content

[13.0 → 14.0] Migration fails in account post-migration due to missing suspense account on bank journal #5594

@artiumrexbellator

Description

@artiumrexbellator

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions