Skip to Content
Menu
This question has been flagged
639 Views

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?

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 25
148
3
Jun 25
699
1
Jun 25
522
2
Jun 25
563
1
Jun 25
470