コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5066 ビュー

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
3373
1
2月 22
4410
2
8月 25
1554
1
7月 25
644
1
2月 25
1485