Skip to Content
Menu
This question has been flagged
1 Reply
3750 Views

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"/>



Avatar
Discard
Best Answer

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

Avatar
Discard
Author

How to remove context, can you suggest any link

Related Posts Replies Views Activity
0
Sep 22
2008
1
Feb 22
3525
1
Jul 23
714
1
Jun 23
1774
2
Jun 23
1609