콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
4855 화면

I am getting following issue only when I add action for Menu (id="menu_incoming_buyer_rfq"
name="Incoming Buyer RFQ")

action="sale_crm.sale_action_quotations_new" However if I change it some other action it working. Is there any issue with CRM module.

UncaughtPromiseError 

UncaughtPromiseError > EvaluationError

Uncaught Promise > Name 'active_id' is not defined

EvaluationError: Name 'active_id' is not defined
    EvaluationError@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:803:430
    _evaluate@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:838:232
    _evaluate@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:840:106
    evaluate@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:849:8
    evaluateExpr@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:702:109
    makeContext@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:164:375
    _preprocessAction@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:2231:108
    doAction@http://localhost:8069/web/assets/615-a1c5608/web.assets_backend.min.js:2311:170
    
I am creating menu structure, like "Expora ERP" has sub menu "Buyer RFQ" and "Supplier RFQ" and it has sub menu "Incoming Buyer RFQ" for "Buyer RFQ". However getting error like active_id is not defined What would be reason for it, 

custom_addon/expora_erp/views/menu.xml

id="menu_expora_erp_root"
name="Expora ERP"
sequence="0"/>
id="menu_buyer_rfq_master"
name="Buyer RFQ"
parent="menu_expora_erp_root"
sequence="0"/>
id="menu_supplier_rfq_master"
name="Supplier RFQ"
parent="menu_expora_erp_root"
sequence="1"/>

id="menu_buyer_rfq"
name="Incoming Buyer RFQ"
action="sale_crm.sale_action_quotations_new"
parent="menu_buyer_rfq_master"
sequence="0"/>

id="menu_supplier_rfq"
name="Supplier RFQ"
action="purchase.purchase_rfq"
parent="menu_supplier_rfq_master"
sequence="0"/>



아바타
취소
베스트 답변

Hi,

If you check the action, in its context, you can see active_id is used, so when you are calling it from menu, there is no active_id and thus it return the error.

If you need to call this action from menu, remove the context from the action(make sure it wont break any other existing functionalities, seems it will break) or create a new action by copying this action and remove context.


Thanks

아바타
취소
작성자

How to remove context, can you suggest any link

관련 게시물 답글 화면 활동
0
9월 22
3107
1
2월 22
4282
1
2월 25
885
1
1월 25
767
1
7월 23
1683