Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5091 Widoki

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



Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

How to remove context, can you suggest any link

Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 22
3393
1
lut 22
4425
2
sie 25
1572
1
lip 25
660
1
lut 25
1513