brotherton-erpnext/erpnext/tests
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
..
__init__.py style: format code with black 2022-03-28 18:52:46 +05:30
exotel_test_data.py test: Fix erroneous code 2022-04-04 09:31:15 +05:30
test_activation.py test: activation 2022-05-05 11:02:23 +05:30
test_exotel.py refactor: Use db.set_single_value (#35668) 2023-06-13 17:30:38 +05:30
test_init.py test: verify that all patches exist in patches.txt (#31371) 2022-06-16 22:15:06 +05:30
test_notifications.py style: format code with black 2022-03-28 18:52:46 +05:30
test_point_of_sale.py style: format code with black 2022-03-28 18:52:46 +05:30
test_regional.py Merge remote-tracking branch 'upstream/develop' into remove-india 2022-06-19 22:57:22 +05:30
test_webform.py fix!: UX of supplier linking with supplier users on portal pages (#35836) 2023-06-28 11:22:40 +05:30
test_zform_loads.py style: format code with black 2022-03-28 18:52:46 +05:30
utils.py style: format code with black 2022-03-28 18:52:46 +05:30