跳至内容
菜单
此问题已终结
2 回复
7092 查看

I want to define a new menu under After Sales Service in CRM module

So i've defined the below menu in project_view.xml

<menuitem name="Helpdesk and Support" id="menu_help_support_main"
        groups="base.group_sale_salesman" parent="base.menu_aftersale"
        action="action_view_task" sequence="2" />

The parent menu is defined in crm_claim_menu.xml

<menuitem id="base.menu_aftersale" name="After-Sale Services"
        groups="base.group_sale_salesman"
        parent="base.menu_base_partner" sequence="2" />

When did the above i got the followin error.

raise ValueError('No such external ID currently defined in the system: %s.%s' %  (module, xml_id))
ValueError: No such external ID currently defined in the system:base.menu_aftersale

Thanks for any help!!

形象
丢弃

In which module did you define the new menu ? (crm , crm helpdesk or crm_claim)

编写者

Hi, i've updated my ques, please check and guide me.

最佳答案

As I understand it, you are trying to add menu in project module.

If so, go on __openerp.py in project module and add 'crm_claim' to depends tag.

形象
丢弃
编写者

Yeah, i didt it already, but the prob is still unresolved.

编写者 最佳答案

Hi,

Thanks, my problem is resolved. i did the below

i've added this in project_view.xml

<menuitem id="base.menu_aftersale" name="After-Sale Services"
        groups="base.group_sale_salesman"
        parent="base.menu_base_partner" sequence="2" />

<menuitem name="Helpdesk and Support" id="menu_action_view_task"
        groups="base.group_sale_salesman" parent="base.menu_aftersale"
        action="action_view_task" sequence="2" />

as did in file crm_claim_menu.xml and added the dependency as 'crm' in __openerp__.py.

Thanks for your suggestion

形象
丢弃

Good job !

相关帖文 回复 查看 活动
0
12月 24
976
4
10月 19
33470
1
4月 17
3726
2
1月 24
13655
2
8月 24
1175