Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
518 Lượt xem

i got this error when i try to export my custom module that i make using odoo studio, can anyone try to help me solf this, 

Model 'ir.model.inherit' should not contain records with the same ID.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

How to Extract??? "Extract your module (ZIP) and open it in a text/code editor.", This error is occured when i try to export this new module. can you suggest a method to zip or export or any other method to solve this?

Ảnh đại diện
Huỷ bỏ

Extract zip in a text editor like open this in vs code and other code editor then update view that i will give you code after update rezip that module and upload then it is solved

Câu trả lời hay nhất

Hii,

How to Fix It:

Extract your module (ZIP) and open it in a text/code editor.

Search for model="ir.model.inherit" across the XML files (especially in data/studio_customizations.xml or similar).

Look for duplicate id="..." values, like:

<record id="studio_inherit_res_partner_1" model="ir.model.inherit">

...

<record id="studio_inherit_res_partner_1" model="ir.model.inherit"> <!-- DUPLICATE -->


Rename one of the duplicates , eg:

<record id="studio_inherit_res_partner_2" model="ir.model.inherit">


Also update any inherit_id references to match the renamed ID if needed.

Re-zip the module and try installing again.


i hope it is use full

Ảnh đại diện
Huỷ bỏ
Tác giả

what do you meant by "Extract zip" as i know there is not another way to edit code, because this is odoo studio, no backend code, i know extract the folder but what to extract?? any suggessions? i am a biginner, have you any suggessions?

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 4 21
3324
0
thg 6 25
690
0
thg 4 21
4089
1
thg 5 25
6280
2
thg 3 25
1455