AttributeError: ‘NoneType’ object has no attribute ‘fieldtype’
Possible source of error: erpnext (app)
how to solve that .
AttributeError: ‘NoneType’ object has no attribute ‘fieldtype’
Possible source of error: erpnext (app)
how to solve that .
Please share the full traceback
recent call last):
File “apps/frappe/frappe/app.py”, line 110, in application
response = frappe.api.handle(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/api/init.py”, line 49, in handle
data = endpoint(**arguments)
^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/api/v1.py”, line 36, in handle_rpc_call
return frappe.handler.handle()
^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/handler.py”, line 49, in handle
data = execute_cmd(cmd)
^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/handler.py”, line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/init.py”, line 1682, in call
return fn(*args, **newargs)
^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/utils/typing_validations.py”, line 31, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/desk/form/save.py”, line 39, in savedocs
doc.save()
File “apps/frappe/frappe/model/document.py”, line 332, in save
return self._save(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/model/document.py”, line 354, in _save
return self.insert()
^^^^^^^^^^^^^
File “apps/frappe/frappe/model/document.py”, line 286, in insert
self.run_before_save_methods()
File “apps/frappe/frappe/model/document.py”, line 1069, in run_before_save_methods
self.run_method(“validate”)
File “apps/frappe/frappe/model/document.py”, line 940, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/model/document.py”, line 1300, in composer
return composed(self, method, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/model/document.py”, line 1282, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/frappe/frappe/model/document.py”, line 937, in fn
return method_object(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “apps/erpnext/erpnext/buying/doctype/purchase_order/purchase_order.py”, line 206, in validate
self.validate_uom_is_integer(“stock_uom”, “stock_qty”)
File “apps/erpnext/erpnext/utilities/transaction_base.py”, line 34, in validate_uom_is_integer
validate_uom_is_integer(self, uom_field, qty_fields, child_dt)
File “apps/erpnext/erpnext/utilities/transaction_base.py”, line 213, in validate_uom_is_integer
precision = d.precision(f)
^^^^^^^^^^^^^^
File “apps/frappe/frappe/model/base_document.py”, line 1145, in precision
if df.fieldtype in (“Currency”, “Float”,“Percent”):
^^^^^^^^^^^^
AttributeError: ‘NoneType’ object has no attribute ‘fieldtype’
Has this issue been resolved?
I encountered the same issue and can’t resolve it.