Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
935 Widoki

Hi !


I created x_aaa data model in Studio

Turns out, it should have been x_bbb.


How can I change this? Keeping x_aaa will be accepting a total incoherence that'll be confusing for everyone.


Here's what I tried:

1) copied table x_aaa into x_bbb

2) changed the technical name of the data model using SQL

3) found out which tables had a char() field called "model", "res_model", "model_name" and replaced "x_aaa" for "x_bbb"
4>) changed references in ir_model_data

However, when accessing data (or the data model record), I always get this:


File "/home/odoo/src/odoo/odoo/registry.py", line 209, in __getitem__

   return self.models[model_name]

KeyError: 'x_bbb'




Does anyone know what still needs to be done?

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sie 25
972
2
sie 25
475
2
sie 25
518
3
sie 25
1348
1
sie 25
744