brotherton-erpnext/erpnext/utilities/doctype
Gursheen Kaur Anand 5113a417a1
fix!: UX of supplier linking with supplier users on portal pages (#35836)
* fix: create and add Portal Users child table in Supplier/Customer

Issue #35772

* fix: modify the original permission check hook

* fix: auto-add role for portal users

* fix: added patch for auto-populating portal users

* fix: modify patch to fetch users correctly

* fix: remove unnecessary code for updating naming_series

* fix(UX): show portal user in list view

Also split columns to reduce whitespace.

* refactor: simpler role checking

* fix: consider parenttype while fetching portal user

* refactor: simpler code, rename variable

* test: supplier portal user can access their docs

* refactor: only add role if not added

* refactor: rename and move patch to supplier

* refactor: dont add role if no perm or existing doc

* fix: add role before save

* refactor: run query directly

* refactor: split patch and apply roles

- if role isn't present dont add portal user
- ignore failure as it's not critical

* test: fix permission creation for webform test

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-06-28 11:22:40 +05:30
..
portal_user fix!: UX of supplier linking with supplier users on portal pages (#35836) 2023-06-28 11:22:40 +05:30
rename_tool style: format code with black 2022-03-28 18:52:46 +05:30
sms_log style: format code with black 2022-03-28 18:52:46 +05:30
video refactor: use renamed timezone utils 2023-03-04 19:31:40 +01:00
video_settings fix(minor): update frappe.error_log to new API (#30864) 2022-05-02 15:04:26 +05:30
__init__.py chore: remove utf-8 compat code 2021-11-05 11:16:29 +05:30