Skip to content

Conversation

@desdelinux
Copy link

@desdelinux desdelinux commented Oct 22, 2025

In Odoo 18.0, the ir_property table is renamed to _ir_property when using the Enterprise Migration Service. This adds a pre-migration to create a temporary copy for compatibility with openupgrade_180.convert_company_dependent(), and cleans it up in post-migration.

Related:

#1507
#1498

#1492

@desdelinux desdelinux marked this pull request as draft October 22, 2025 10:33
…rations

In Odoo 18.0, the ir_property table was renamed to _ir_property.
This adds a pre-migration to create a temporary copy for compatibility
with openupgrade_180.convert_company_dependent(), and cleans it up
in post-migration.
@desdelinux desdelinux marked this pull request as ready for review October 22, 2025 11:07
@desdelinux
Copy link
Author

Hi @pedrobaeza

What do you think of this solution?

cc @Darumait @matteoopenf @remi-filament

@pedrobaeza
Copy link
Member

Sorry, but no. We are not going to handle enterprise specific code that dirties everything and make this less readable (or even to know if it's going to work). And it also has impact in the performance terms. Compare your solution with the current one: https://github.com/OCA/bank-payment/blob/18.0/account_payment_partner/migrations/18.0.1.0.0/post-migration.py

Put that scripts in your side.

@pedrobaeza
Copy link
Member

I think your best bet is to rename the table _ir_property to ir_property when Odoo SA delivers you the DB, because this will be recurrent, like in https://github.com/OCA/sale-workflow/blob/18.0/sale_order_type/migrations/18.0.1.0.0/post-migration.py.

@desdelinux desdelinux closed this Oct 23, 2025
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

Successfully merging this pull request may close these issues.

2 participants