Skip to Content
Menu
This question has been flagged
1 Odpoveď
842 Zobrazenia

I added a new model 'some.model' in branch A, then I switched to branch B.

When I try to upgrade the module I get this error.

It seems like 'some.model' is still referenced somewhere.

How can I avoid this problem?

Thank you

Avatar
Zrušiť
Best Answer

Option 1 (Quick fix): Run SQL to remove the missing model references:
DELETE FROM ir_model WHERE model = 'some.model';

DELETE FROM ir_model_fields WHERE model = 'some.model';

DELETE FROM ir_act_window WHERE res_model = 'some.model';

DELETE FROM ir_ui_view WHERE model = 'some.model';

Option 2 (Best practice): Use a separate database for each branch to avoid model conflicts.

Option 3: Switch back to branch A, uninstall the module, then switch to branch B.

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
máj 25
713
2
máj 25
1390
1
máj 25
737
0
mar 25
880
0
jan 25
785