Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
940 มุมมอง

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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 25
13
1
ส.ค. 25
973
2
ส.ค. 25
478
2
ส.ค. 25
518
3
ส.ค. 25
1348