OCA / openupgradelib

A library with support functions to be called from Odoo migration scripts.
GNU Affero General Public License v3.0
85 stars 171 forks source link

[ADD] get_model2table: method to map nonstandard table names #336

Closed MiquelRForgeFlow closed 1 year ago

MiquelRForgeFlow commented 1 year ago

Extracted from https://github.com/OCA/OpenUpgrade/blob/16.0/openupgrade_scripts/scripts/base/16.0.1.3/pre-migration.py#L65C9-L65C64, in order to all versions get the benefit.

pedrobaeza commented 1 year ago

Not sure if this may vary across versions.

MiquelRForgeFlow commented 1 year ago

Not sure if this may vary across versions.

I have checked from v8 to v16 and this is the only change: Selection_1476

So, I think we are being safe enough. If in the future any of these models/tables changes, then we will adapt this new method accordingly.