Skip to Content
Menu
This question has been flagged

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
0
Jun 15
2081
1
Mar 15
3087
1
May 24
2176
0
Apr 24
210
1
Mar 22
1591