OCA/account-financial-tools

[13.0] account_spread_cost_revenue migration: incorrect table name for column rename.

Opened this issue · 0 comments

Module

account_spread_cost_revenue

Describe the bug

The table name mentioned in

sql.rename_column(cr, "res_partner", "auto_archive", "auto_archive_spread")
should be res_company instead of res_partner. c.q.

To Reproduce

13.0: Run migration to v13.0 the following error log will occur:
INFO XXXX odoo.modules.migration: module account_spread_cost_revenue: Running migration [>13.0.1.0.0] pre-migration
ERROR XXXX odoo.sql_db: bad query: ALTER TABLE "res_partner" RENAME COLUMN "auto_archive" TO "auto_archive_spread"
ERROR: column "auto_archive" does not exist

Expected behavior
The migration should run without error.