brotherton-erpnext/erpnext
JodeQ 1b8e9cd3bb Permission error for new Sales invoice (#15952)
In version
```
Installed Apps
ERPNext: v11.0.3-beta.20 () (staging)
Frappe Framework: v11.0.3-beta.25 () (staging)
```

When creating a new Sales invoice without healthcare active we have this error
```
Not permitted
Insufficient Permission for Patient
```
Console log
```
Traceback (most recent call last):
  File "/home/frappe/auroraone-v11/apps/frappe/frappe/app.py", line 61, in application
    response = frappe.handler.handle()
  File "/home/frappe/auroraone-v11/apps/frappe/frappe/handler.py", line 21, in handle
    data = execute_cmd(cmd)
  File "/home/frappe/auroraone-v11/apps/frappe/frappe/handler.py", line 56, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "/home/frappe/auroraone-v11/apps/frappe/frappe/__init__.py", line 1007, in call
    return fn(*args, **newargs)
  File "/home/frappe/auroraone-v11/apps/frappe/frappe/desk/search.py", line 53, in search_link
    search_widget(doctype, txt, query, searchfield=searchfield, page_length=page_length, filters=filters, ignore_user_permissions=ignore_user_permissions)
  File "/home/frappe/auroraone-v11/apps/frappe/frappe/desk/search.py", line 149, in search_widget
    as_list=not as_dict)
  File "/home/frappe/auroraone-v11/apps/frappe/frappe/__init__.py", line 1235, in get_list
    return frappe.model.db_query.DatabaseQuery(doctype).execute(None, *args, **kwargs)
  File "/home/frappe/auroraone-v11/apps/frappe/frappe/model/db_query.py", line 40, in execute
    raise frappe.PermissionError(self.doctype)
PermissionError: Patient
```
2018-11-12 16:42:05 +05:30
..
accounts Permission error for new Sales invoice (#15952) 2018-11-12 16:42:05 +05:30
agriculture Doctypes in domains that are in beta are now restricted to that domain 2018-11-04 08:39:52 -05:00
assets [Fix] Asset date validation (#15887) 2018-11-05 16:04:04 +05:30
buying field name fix 2018-10-22 11:22:12 +05:30
change_log Email alert renamed to Notification (#14618) 2018-06-21 09:17:52 +05:30
commands
config Server side script report for sales analytics (#15589) 2018-11-12 16:15:54 +05:30
controllers [fix] Invoice/Delivery note customer po_no overwritten by Sales order null po_no (#15785) 2018-11-08 12:51:41 +05:30
crm Do not display gender for companies (#15728) 2018-10-18 16:49:49 +05:30
demo item data updated with retail data 2018-10-10 14:28:17 +05:30
domains [fix] Healthcare field and desktop icon (#15638) 2018-10-10 14:44:36 +05:30
education Doctypes in domains that are in beta are now restricted to that domain 2018-11-04 08:39:52 -05:00
erpnext_integrations [Feature] ERPNext Quickbooks Migrator (#15718) 2018-10-17 17:50:00 +05:30
healthcare Doctypes in domains that are in beta are now restricted to that domain 2018-11-04 08:39:52 -05:00
hotels Doctypes in domains that are in beta are now restricted to that domain 2018-11-04 08:39:52 -05:00
hr Merge branch 'master' into staging-fixes 2018-11-05 06:45:04 +00:00
hub
hub_node fix(hub): Prevent registered actions 2018-11-05 19:18:48 +05:30
maintenance Refactor Naming Series (#15070) 2018-08-28 13:44:48 +05:30
manufacturing fix(bom): Display item name in new BOM form (#15783) 2018-11-08 12:54:20 +05:30
non_profit Doctypes in domains that are in beta are now restricted to that domain 2018-11-04 08:39:52 -05:00
patches [Fix] Patch 2018-11-06 16:32:29 +05:30
portal Fixed merge conflict 2018-08-29 13:34:58 +05:30
projects [fix] #14038-Std hours at company level to calculate timesheet hours (#15819) 2018-11-12 16:40:07 +05:30
public fix(hub): Prevent registered actions 2018-11-05 19:18:48 +05:30
regional Check for prefix before return EcritureNum (#15629) 2018-10-11 16:51:29 +05:30
restaurant Refactor Naming Series (#15070) 2018-08-28 13:44:48 +05:30
selling Server side script report for sales analytics (#15589) 2018-11-12 16:15:54 +05:30
setup [fix] #14038-Std hours at company level to calculate timesheet hours (#15819) 2018-11-12 16:40:07 +05:30
shopping_cart optimize(various) 2018-08-08 16:37:31 +05:30
startup [Enhance][Fix] Healthcare - DocType and Fields renaming (#14861) 2018-07-16 18:08:53 +05:30
stock [Feature] Route optimization for Delivery Trip stops (#15566) 2018-11-08 11:57:05 +05:30
support Refactor Naming Series (#15070) 2018-08-28 13:44:48 +05:30
templates Merge pull request #15547 from Zlash65/demo-refactor 2018-10-16 17:34:09 +05:30
tests Test case for contact references (#15077) 2018-09-05 11:00:14 +05:30
translations [Translation] Updated Translations (#15414) 2018-09-17 16:54:30 +05:30
utilities Add event in transaction base correction (#15631) 2018-10-11 16:54:26 +05:30
www Certfication Application Doctype and webform,Certfied Consultant DocType (#14528) 2018-06-15 10:04:19 +05:30
__init__.py Merge branch 'master' into staging-fixes 2018-11-09 10:11:27 +00:00
exceptions.py
hooks.py bumped to version 11.0.3-beta.20 2018-11-09 10:19:21 +00:00
modules.txt Re-add Hub Node module 2018-09-12 16:36:10 +05:30
patches.txt Server side script report for sales analytics (#15589) 2018-11-12 16:15:54 +05:30