跳至内容
菜单
此问题已终结

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 ? 

形象
丢弃
最佳答案

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

形象
丢弃
编写者

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.

相关帖文 回复 查看 活动
2
9月 20
3945
0
2月 21
2907
0
1月 22
2248
1
12月 19
4093
0
1月 25
1398