I am receiving this error since 2 days, the print formats are correct and was correctly. Now if I disable my custom print formats, that I created for quotation doctype, are disabled there are no errors. When I enable print formats, it works properly for a short period and then the error pops-up again.
Any help will be highly appreciated.TIA
App Versions
{
"a3_solar_provide_software": "0.0.1",
"erpnext": "14.0.0-dev",
"frappe": "14.0.0-dev"
}
Route
Form/Print Format/Soura Quotation
Trackeback
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 66, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 54, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 31, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 68, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1233, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/desk/form/load.py", line 70, in getdoctype
docs = get_meta_bundle(doctype)
File "apps/frappe/frappe/desk/form/load.py", line 80, in get_meta_bundle
bundle = [frappe.desk.form.meta.get_meta(doctype)]
File "apps/frappe/frappe/desk/form/meta.py", line 20, in get_meta
meta = FormMeta(meta)
File "apps/frappe/frappe/desk/form/meta.py", line 34, in __init__
super(FormMeta, self).__init__(doctype)
File "apps/frappe/frappe/model/meta.py", line 90, in __init__
super(Meta, self).__init__(doctype)
File "apps/frappe/frappe/model/document.py", line 123, in __init__
super(Document, self).__init__(kwargs)
File "apps/frappe/frappe/model/base_document.py", line 81, in __init__
self.update(d)
File "apps/frappe/frappe/model/base_document.py", line 113, in update
self.set(key, value)
File "apps/frappe/frappe/model/base_document.py", line 167, in set
self.extend(key, value)
File "apps/frappe/frappe/model/base_document.py", line 214, in extend
self.append(key, v)
File "apps/frappe/frappe/model/base_document.py", line 191, in append
value = self._init_child(value, key)
File "apps/frappe/frappe/model/base_document.py", line 231, in _init_child
raise AttributeError(key)
AttributeError: __print_formats
Request Data
{
"type": "GET",
"args": {
"doctype": "Quotation",
"with_parent": 1,
"cached_timestamp": null
},
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.form.load.getdoctype"
}
Response Data
{
"exception": "AttributeError: __print_formats"
}