Skip to Content
Menu
This question has been flagged

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 ? 

Avatar
Discard
Best Answer

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

Avatar
Discard
Author

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.

Related Posts Replies Views Activity
2
Sep 20
3087
0
Feb 21
2072
0
Jan 22
1328
1
Dec 19
3122
1
Nov 24
100