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

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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. 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
cze 15
2852
1
mar 15
3944
1
maj 24
3040
0
kwi 24
1055
1
mar 22
3154