Insufficient Permission for Custom Field

I just updated to the latest ERPNext. When I create a POS sale I keep getting Insufficient Permission for Custom Field when I try to submit the sale.

Problem is that I don’t have the field name.

  File "apps/frappe/frappe/", line 68, in application
    response = frappe.api.handle()
  File "apps/frappe/frappe/", line 55, in handle
    return frappe.handler.handle()
  File "apps/frappe/frappe/", line 31, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/", line 67, in execute_cmd
    return, **frappe.form_dict)
  File "apps/frappe/frappe/", line 1208, in call
    return fn(*args, **newargs)
  File "apps/frappe/frappe/desk/form/", line 19, in savedocs
  File "apps/frappe/frappe/model/", line 938, in submit
    return self._submit()
  File "apps/frappe/frappe/model/", line 926, in _submit
  File "apps/frappe/frappe/model/", line 285, in save
    return self._save(*args, **kwargs)
  File "apps/frappe/frappe/model/", line 307, in _save
  File "apps/frappe/frappe/model/", line 268, in insert
  File "apps/frappe/frappe/model/", line 1006, in run_post_save_methods
  File "apps/frappe/frappe/model/", line 867, in run_method
    out = Document.hook(fn)(self, *args, **kwargs)
  File "apps/frappe/frappe/model/", line 1160, in composer
    return composed(self, method, *args, **kwargs)
  File "apps/frappe/frappe/model/", line 1145, in runner
    add_to_return_value(self, f(self, method, *args, **kwargs))
  File "apps/erpnext/erpnext/regional/saudi_arabia/", line 24, in create_qr_code
  File "apps/frappe/frappe/custom/doctype/custom_field/", line 167, in create_custom_fields
    create_custom_field(doctype, df, ignore_validate=ignore_validate)
  File "apps/frappe/frappe/custom/doctype/custom_field/", line 142, in create_custom_field
  File "apps/frappe/frappe/model/", line 226, in insert
  File "apps/frappe/frappe/model/", line 187, in check_permission
    self.raise_no_permission_to(permlevel or permtype)
  File "apps/frappe/frappe/model/", line 201, in raise_no_permission_to
    raise frappe.PermissionError

could you provide more details?

Any ideas what you’re looking for?

I am on the latest or maybe second last from the latest frappe 13.x