Thank you.
jquery.min.js:4 POST https://protocast.erpnext.com/ 417 (EXPECTATION FAILED)k.cors.a.crossDomain.send @ jquery.min.js:4n.extend.ajax @ jquery.min.js:4frappe.request.call @ desk.min.js:7286frappe.call @ desk.min.js:7281_call @ form.min.js:204(anonymous function) @ form.min.js:195check_name @ form.min.js:198save @ form.min.js:195frappe.ui.form.save @ form.min.js:204(anonymous function) @ form.min.js:81j @ jquery.min.js:2k.add @ jquery.min.js:2_f.Frm.save @ form.min.js:79(anonymous function) @ form.min.js:73
desk.min.js:7297 Traceback (innermost last):
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/desk/form/save.py”, line 18, in savedocs
doc.save()
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 259, in save
self.run_post_save_methods()
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 638, in run_post_save_methods
self.run_method(“on_submit”)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 579, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 735, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 718, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 573, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py”, line 243, in on_submit
self.make_gl_entries()
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py”, line 403, in make_gl_entries
make_gl_entries(gl_entries, cancel=(self.docstatus == 2))
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/general_ledger.py”, line 19, in make_gl_entries
save_entries(gl_map, adv_adj, update_outstanding)
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/general_ledger.py”, line 86, in save_entries
make_entry(entry, adv_adj, update_outstanding)
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/general_ledger.py”, line 94, in make_entry
gle.insert()
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 193, in insert
self.run_before_save_methods()
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 617, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 579, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 735, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 718, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 573, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/doctype/gl_entry/gl_entry.py”, line 21, in validate
self.pl_must_have_cost_center()
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/doctype/gl_entry/gl_entry.py”, line 57, in pl_must_have_cost_center
frappe.throw((“Cost Center is required for ‘Profit and Loss’ account {0}”).format(self.account))
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/init.py”, line 264, in throw
msgprint(msg, raise_exception=exc)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/init.py”, line 257, in msgprint
_raise_exception()
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/init.py”, line 242, in _raise_exception
raise raise_exception, encode(msg)
ValidationError: Cost Center is required for ‘Profit and Loss’ account Sklad uctovany1 - PC
desk.min.js:7297 Traceback (innermost last):
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/app.py”, line 57, in application
response = frappe.handler.handle()
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/handler.py”, line 19, in handle
execute_cmd(cmd)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/handler.py”, line 36, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/init.py”, line 806, in call
return fn(*args, **newargs)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/desk/form/save.py”, line 18, in savedocs
doc.save()
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 259, in save
self.run_post_save_methods()
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 638, in run_post_save_methods
self.run_method(“on_submit”)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 579, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 735, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 718, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 573, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py”, line 243, in on_submit
self.make_gl_entries()
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py”, line 403, in make_gl_entries
make_gl_entries(gl_entries, cancel=(self.docstatus == 2))
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/general_ledger.py”, line 19, in make_gl_entries
save_entries(gl_map, adv_adj, update_outstanding)
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/general_ledger.py”, line 86, in save_entries
make_entry(entry, adv_adj, update_outstanding)
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/general_ledger.py”, line 94, in make_entry
gle.insert()
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 193, in insert
self.run_before_save_methods()
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 617, in run_before_save_methods
self.run_method(“validate”)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 579, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 735, in composer
return composed(self, method, *args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 718, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/model/document.py”, line 573, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/doctype/gl_entry/gl_entry.py”, line 21, in validate
self.pl_must_have_cost_center()
File “/home/frappe/press/benches/1605111019/apps/erpnext/erpnext/accounts/doctype/gl_entry/gl_entry.py”, line 57, in pl_must_have_cost_center
frappe.throw(_(“Cost Center is required for ‘Profit and Loss’ account {0}”).format(self.account))
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/init.py”, line 264, in throw
msgprint(msg, raise_exception=exc)
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/init.py”, line 257, in msgprint
_raise_exception()
File “/home/frappe/press/benches/1605111019/apps/frappe/frappe/init.py”, line 242, in _raise_exception
raise raise_exception, encode(msg)
ValidationError: Cost Center is required for ‘Profit and Loss’ account Sklad uctovany1 - PC