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
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
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
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.
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-se| Related Posts | Respostes | Vistes | Activitat | |
|---|---|---|---|---|
|  | 0 de maig 25  | 1071 | ||
|  | 2 de maig 25  | 1878 | ||
| 
            
                Change filename
            
            
                    Solved
            
         |  | 1 de maig 25  | 971 | |
|  | 0 de març 25  | 1217 | ||
|  | 0 de gen. 25  | 1070 |