You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[IMP] util/{models,pg}: check m2m tables on model rename
When renaming a model we need to check m2m tables that may need to be
renamed as well. Otherwise the ORM will create a new table that would be
empty. If the data is handled directly in the scripts the ignore
parameter can be used to avoid warnings.
Notes:
* As this is a breaking change, this only done by default from
Odoo saas~18.1
* From Odoo 9 the column relation_table exists in ir_model_fields
* From Odoo 10 the name of m2m tables is given by the model names ordered
alphabetically
closes#278
Related: odoo/upgrade#7752
Signed-off-by: Christophe Simonis (chs) <[email protected]>
0 commit comments