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

i want to creat an acces application (ir.module.category) for an existing module (let's say my_existing is its name )via a custom module (my_module),

i proceed this way by creating a new category record, to be able after to attach it with new groups.

<data noupdate="0"> 
<record id="my_existing.module_category_reclamation" model="ir.module.category" > <field name="name">Reclamation</field>
<field name="sequence">22</field>
<field name="description">Helps you manage your reclamations.</field>
</record>
</data>

and for the group 

 <record id="group_reclamation_user" model="res.groups"> 
<field name="name">Utilisateurs</field>
<field name="category_id" ref="my_existing.module_category_reclamation"/>
</record>

but still get external 

  "Cannot update missing record 'my_existing.module_category_reclamation'" 


am i missing something ? 

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

Hi,

Make sure that the file containing this code is called in manifest file prior to the next one,

<data noupdate="0"> 
<record id="my_existing.module_category_reclamation" model="ir.module.category" > <field name="name">Reclamation</field>
<field name="sequence">22</field>
<field name="description">Helps you manage your reclamations.</field>
</record>
</data>

Also,if the both are same file, ensure the above is placed at the top.


Thanks

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

Hi Niyas, thanks for your replay

yes i already called the file on the manifest and the above record is in the top, but still got the same error, when i erase the name of the module that i want to add to the category it works but the category is set for the custom module that i am working on.

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 20
3935
0
thg 2 21
2905
0
thg 1 22
2248
1
thg 12 19
4091
0
thg 1 25
1397