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

Hey,

I am willing to change the technical name of a module on an existing database. The operation happens in 2 steps : create a duplicate of my module with the new_named. Uninstall the old_named module.

Now, uninstalling the old_named module removes all associated fields. The new module recreates them, but of course, the tables are empty.

How could I proceed to change the technical name (module's folder name) without loosing data in the database ? (there is no change involved in the code itself) tks

아바타
취소
베스트 답변

Hello Nicolas,

You can follow this link.

Hope this helps

Thanks and Regards,

Kalpana Hemnani

아바타
취소
작성자

Great post indeed, this will serve many ppl I think. Thanks you

작성자

You could post this tutorial right here too.

베스트 답변

You can remove the old module from the file system, without uninstalling it.

Restart openerp-server

Then, you can add and install the renamed module: existing data will not be lost.

아바타
취소
작성자

Thanks for the tip, this solution works. Though, it doesn't allow me to fully remove a module. Nevertheless, the fields are now declred in a new module, and data was kept intact.

I didn't try, but maybe you can simply remove the old module from the ir_module_module table

작성자

indeed, but there are many dependents on ir_module_module (ir_model_constraint, relation, dependency, etc) ... that I wouldn't interact with by hand.

Or manually set it as uninstalled?

작성자

I'll try :

관련 게시물 답글 화면 활동
1
7월 24
1920
1
1월 24
5037
2
3월 23
2716
3
6월 20
10525
2
3월 20
8947