-
-
Notifications
You must be signed in to change notification settings - Fork 179
Description
Since version 18 of Odoo, company_dependent fields are stored in JSONB dictionaries instead of the ir.property table.
The convert_to_company_dependent function was designed to convert regular fields into company_dependent ones by storing their values in the ir.property table. However, it no longer works as expected in version 18 or later, since that table no longer exists.
That said, I think a new version of this method should be created in openupgrade_180.py, or the existing method should be refactored to also work with JSONB dictionaries.
openupgrade_180.py already includes the convert_company_dependent function, but its purpose is different: it converts company-dependent fields from version 17 to version 18, migrating data from the ir.property table to JSONB.
Before starting the development, I’d appreciate it if someone could share their opinion or confirm whether this approach makes sense.