Error when submitting Bank Guarantee

error when submitting Bank Guarantee

Error below

Traceback (most recent call last):
File “/home/bench/erpnext/apps/frappe/frappe/desk/form/save.py”, line 19, in savedocs
doc.submit()
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 841, in submit
self._submit()
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 830, in _submit
self.save()
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 260, in save
return self._save(*args, **kwargs)
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 311, in _save
self.run_post_save_methods()
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 901, in run_post_save_methods
self.run_method(“on_submit”)
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 765, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 1040, in composer
return composed(self, method, *args, **kwargs)
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 1023, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 759, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/bench/erpnext/apps/erpnext/erpnext/accounts/doctype/bank_guarantee/bank_guarantee.py”, line 20, in on_submit
if not self.name_of_bank:
AttributeError: ‘BankGuarantee’ object has no attribute ‘name_of_bank’

Traceback (most recent call last):
File “/home/bench/erpnext/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.handler.handle()
File “/home/bench/erpnext/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/bench/erpnext/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/bench/erpnext/apps/frappe/frappe/init.py”, line 942, in call
return fn(*args, **newargs)
File “/home/bench/erpnext/apps/frappe/frappe/desk/form/save.py”, line 19, in savedocs
doc.submit()
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 841, in submit
self._submit()
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 830, in _submit
self.save()
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 260, in save
return self._save(*args, **kwargs)
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 311, in _save
self.run_post_save_methods()
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 901, in run_post_save_methods
self.run_method(“on_submit”)
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 765, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 1040, in composer
return composed(self, method, *args, **kwargs)
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 1023, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/bench/erpnext/apps/frappe/frappe/model/document.py”, line 759, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/bench/erpnext/apps/erpnext/erpnext/accounts/doctype/bank_guarantee/bank_guarantee.py”, line 20, in on_submit
if not self.name_of_bank:
AttributeError: ‘BankGuarantee’ object has no attribute ‘name_of_bank’

May I know the version of your ERPNext account?

In the version 10, I am facing another issue though. End date is mandatory, but not editable.

I used the latest Develop ERPNext version which in mine there is an option where to set either provide or receive bank guarantee. However, i just converted to the Master version which lack of this option.