Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
niecw opened this issue May 10, 2024 · 0 comments

Comments

@niecw
Copy link

niecw commented May 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant