Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3199 Widoki

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 ? 

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

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.

Powiązane posty Odpowiedzi Widoki Czynność
2
wrz 20
3943
0
lut 21
2906
0
sty 22
2248
1
gru 19
4093
0
sty 25
1398