Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7180 มุมมอง

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 !

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ธ.ค. 24
1035
4
ต.ค. 19
33602
1
เม.ย. 17
3792
2
ม.ค. 24
13748
2
ส.ค. 24
1237