Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3184 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

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.

Publications associées Réponses Vues Activité
2
sept. 20
3931
0
févr. 21
2904
0
janv. 22
2248
1
déc. 19
4091
0
janv. 25
1395