Role profile error following the doc tutorial

Following the library tutorial in the doc DocType Features, i setup the doctype permissions:

I created a role profile:

if I apply it to a test user:

Then login with it, I get an error:
AttributeError: 'NoneType' object has no attribute 'name'

Using:
ERPNext: v15.x.x-develop (a24d7e8) (develop)
Framework: v15.x.x-develop (59309f8) (develop)
which is 16.0.0.dev0 according to pip.

Any idea what is wrong?

Here’s the json of the Article doctype:

{
 "actions": [],
 "allow_rename": 1,
 "autoname": "field:article_name",
 "creation": "2025-01-07 18:22:22.504459",
 "doctype": "DocType",
 "engine": "InnoDB",
 "field_order": [
  "article_name",
  "article_status",
  "article_author",
  "image",
  "column_break_xiww",
  "article_description"
 ],
 "fields": [
  {
   "fieldname": "article_name",
   "fieldtype": "Data",
   "in_list_view": 1,
   "label": "Name",
   "reqd": 1,
   "unique": 1
  },
  {
   "fieldname": "image",
   "fieldtype": "Attach Image",
   "label": "Image",
   "make_attachment_public": 1
  },
  {
   "fieldname": "column_break_xiww",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "article_status",
   "fieldtype": "Select",
   "label": "Status",
   "options": "Issue\nAvailable"
  },
  {
   "fieldname": "article_author",
   "fieldtype": "Data",
   "label": "Author"
  },
  {
   "fieldname": "article_description",
   "fieldtype": "Text Editor",
   "label": "Description"
  }
 ],
 "image_field": "image",
 "index_web_pages_for_search": 1,
 "links": [],
 "modified": "2025-01-08 08:50:24.460424",
 "modified_by": "Administrator",
 "module": "Library Tut",
 "name": "Article",
 "naming_rule": "By fieldname",
 "owner": "Administrator",
 "permissions": [
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "System Manager",
   "share": 1,
   "write": 1
  },
  {
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Guest",
   "share": 1
  },
  {
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "library_member",
   "share": 1
  },
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "librarian",
   "share": 1,
   "write": 1
  }
 ],
 "sort_field": "creation",
 "sort_order": "DESC",
 "states": []
}

solutions:

  • tick workspace (has access to all ERP)
  • web view with a route to the list