콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
976 화면

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?

아바타
취소
관련 게시물 답글 화면 활동
1
9월 25
874
1
9월 25
165
3
9월 25
180
2
9월 25
289
2
8월 25
647