Hi everyone!.
I’m trying to post a new Material Request via API REST and i’m getting the following issue:
Here is the trackback:
Traceback (innermost last):
File "/home/frappe/frappe-bench/apps/frappe/frappe/app.py", line 60, in application
response = frappe.api.handle()
File "/home/frappe/frappe-bench/apps/frappe/frappe/api.py", line 116, in handle
"data": frappe.get_doc(data).insert().as_dict()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 194, in insert
self.run_before_save_methods()
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 627, in run_before_save_methods
self.run_method("validate")
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 588, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 752, in composer
return composed(self, method, *args, **kwargs)
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 735, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 582, in
<lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/stock/doctype/material_request/material_request.py", line 64, in validate
super(MaterialRequest, self).validate()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/buying_controller.py", line 27, in validate
super(BuyingController, self).validate()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/accounts_controller.py", line 48, in validate
self.validate_party()
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/controllers/accounts_controller.py", line 417, in validate_party
validate_party_frozen_disabled(party_type, party)
File "/home/frappe/frappe-bench/apps/erpnext/erpnext/accounts/party.py", line 319, in validate_party_frozen_disabled
if party.disabled:
AttributeError: 'NoneType' object has no attribute 'disabled'
What could be the problem?
Hoping you can help me with this issue. Thanks for your time!
Francisco Javier Ugalde