odoo/upgrade-util#86

Created by Nimesh Parmar (npm)
Merged at 32e8b77e60a5029ca6def4c47b6eccf4ea249d66

Statuses:

label
odoo-dev:master-fix-improve-query-npm
head
d813dca89d8d8870b387c10c5b765e59520eca41
merged
1 year ago by Upgrade, Christophe Simonis (chs)
odoo/upgrade-util
master #86

[FIX]util/models: improve query for custom fields

When utilizing 'def remove_inherit_from_model' method, it removes fields to disconnect two models,
eliminating all custom fields created by customers. To prevent this, adding one condition.

Recentally i saw that issue here
Here he tries to remove the connection between base.automation and ir.act.server. If customers have created custom fields using the studio in the base.automation model, this method will remove all custom fields during migration.