Thanks for validating brother. @jamsheer
I rebooted the entire server and now I guess the event is getting triggered. But this error occurs:
"exception": "NameError: name '_' is not defined"
Detailed error report:
### App Versions
{
"erpnext": "13.41.1",
"frappe": "13.43.2",
"indiamart_integration": "0.0.1",
"inventory_management": "0.0.1",
"razorpayx": "0.0.1",
"woocommerceconnector": "1.7.0",
"zarnik": "0.0.1"
}
### Route
Form/Sales Order/new-sales-order-1
### Trackeback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 69, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 38, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 76, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1457, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/desk/form/save.py", line 24, in savedocs
doc.save()
File "apps/frappe/frappe/model/document.py", line 310, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 347, in _save
self.run_before_save_methods()
File "apps/frappe/frappe/model/document.py", line 1052, in run_before_save_methods
self.run_method("validate")
File "apps/frappe/frappe/model/document.py", line 941, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1264, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1248, in runner
add_to_return_value(self, f(self, method, *args, **kwargs))
File "apps/razorpayx/razorpayx/tasks.py", line 184, in test
doc.submit()
NameError: name '_' is not defined
### Request Data
{
"type": "POST",
"args": {
"doc": "{****
*
*
*
*
*
*
*
*
"action": "Save"
},
"btn": {
"jQuery224068332973973893731": {
"events": {
"click": [
{
"type": "click",
"origType": "click",
"guid": 2540,
"namespace": ""
}
]
}
}
},
"freeze": true,
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.form.save.savedocs"
}
### Response Data
{
"exception": "NameError: name '_' is not defined"
}