Whenever i add a custom doc(also a form) in Form Customization → Supplier Form, in form of a table(i need multiple values, that’s why table)…i get following error -
Server Error: Please check your server logs or contact tech support.
Traceback (innermost last):
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 18, in savedocs
doc.save()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 230, in save
self.insert()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 187, in insert
self.set_new_name()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 283, in set_new_name
set_new_name(d)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/naming.py”, line 40, in set_new_name
frappe.throw(_(“{0} is required”).format(doc.meta.get_label(fieldname)))
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/meta.py”, line 100, in get_label
return self.get_field(fieldname).label
AttributeError: ‘NoneType’ object has no attribute ‘label’
Traceback (innermost last):
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/app.py”, line 70, in application
response = frappe.handler.handle()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/handler.py”, line 75, in handle
execute_cmd(cmd)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/handler.py”, line 109, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/init.py”, line 777, in call
return fn(*args, **newargs)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 18, in savedocs
doc.save()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 230, in save
self.insert()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 187, in insert
self.set_new_name()
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/document.py”, line 283, in set_new_name
set_new_name(d)
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/naming.py”, line 40, in set_new_name
frappe.throw(_(“{0} is required”).format(doc.meta.get_label(fieldname)))
File “/opt/bitnami/apps/erpnext/htdocs/frappe-bench/apps/frappe/frappe/model/meta.py”, line 100, in get_label
return self.get_field(fieldname).label
AttributeError: ‘NoneType’ object has no attribute ‘label’
whereas if i use predefind link as table(such as brand), it works successfully.
What am i missing in creating a new form for the addition of multiple values.