Se rendre au contenu
Menu
Cette question a été signalée

I have a custom module with user group: Sample - User and Manager. My module have two main menus - in Accounting and Portal.

Accounting Menu
Main

  • SubMenu1
  • SubMenu2
  • SubMenu3

Portal
Main

  • SubMenu1
  • SubMenu2

Billing user group can access all custom menus in the Accounting menu. Manager can access those menus thru Portal menu only. But whenever I access SubMenu2 as Manager in Portal menu, Odoo shows AssertionError: External ID must be fully qualified. But when I try a different user with Billing and Manager user group, there's no error, only the Manager user group.

sample1.xml
<record id="sample1_action" model="ir.actions.act_window">
<field name="name">Sample</field>
<field name="res_model">sample.model</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>

sample2.xml (for portal menu)
<menuitem id="my_sample_portal_menu" parent="sample_portal_main_menu" name="SubMenu2" groups="my_module.group_sample_manager" sequence="40" action="my_module.sample1_action"/>

As per checking, the system only pass the group_sample_manager without the module name that's why the error occurs. I already tried using different menu, but only the SubMenu2 has an error. What is the possible cause here?

Avatar
Ignorer
Meilleure réponse

if u change your menuitem id then it is possible that, your old menu is not deleted so it's give you a error. so manually  you need to delete that menu from data base. 

Avatar
Ignorer
Publications associées Réponses Vues Activité
0
juin 15
2968
1
mars 15
4033
1
mai 24
3115
0
avr. 24
1153
1
mars 22
3243