Commit graph

22 commits

Author SHA1 Message Date
Suraj Shetty
26b42fc794 fix(treeview): Accept filters as kwargs to avoid TypeError (#12920) 2021-04-27 14:54:35 +05:30
mustafaelagamey
d8dca020b3 fix: Remove cmd only if exist (#12886)
* only remove cmd if exist

When calling this function from backend this line raises key error as there's no such key called cmd

* style: Simplify code

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2021-04-27 14:54:33 +05:30
Sagar Vora
3b3b9e7e4a fix: create _get_children for passing ignore_permissions when needed 2021-04-01 15:04:51 +05:30
Rushabh Mehta
248e9cd7d1 feat(doctype-urls): pretty doctype urls and removed social JS code 2020-11-16 09:44:56 +05:30
Glen Whitney
a24104da53
feat(treeview): Display multiple roots automatically in tree view (#10967)
Co-authored-by: Prssanna Desai <prssud@gmail.com>
2020-09-07 10:24:30 +05:30
Deepesh Garg
86263496d5 fix: Remove unnecessary code from treeview 2020-02-18 09:01:24 +05:30
Aditya Hase
56f6bcc261
fix(desk): Pop data from keyword arguments when it isn't needed (#7082) 2019-03-14 18:53:29 +05:30
Zarrar
a7a3d0da20 extract value from dict (#5733) 2018-06-27 15:13:22 +05:30
Zarrar
ff83f97f44 fix filter query for get_children tree query (#5655) 2018-06-05 10:28:52 +05:30
Suraj Shetty
555a80d8ac Treeview permissions (#5615)
* Replace frappe.db.sql to frappe.get_list to apply permissions (#5556)

* Replace frappe.db.sql with frappe.get_list
- Permission check for treeviews

* Optimize get_role_permissions
- Avoid setting of roles each time when is_perm_appicable is called

* Fix codacy
- Remove trailing whitespace

* Add parent filter

* Add ifnull check
2018-05-27 12:48:49 +05:30
Rushabh Mehta
a2e1af2a55
Revert "Replace frappe.db.sql to frappe.get_list to apply permissions" (#5559)
* Revert "[minor] remove in_dialog old property"

This reverts commit b4650f42a1.

* Revert "JWT response does not contain email attribute for Office 365, reading upn instead (#5525)"

This reverts commit 51f5988a76.

* Revert "Fix "frappe.is_user_logged_in" js function (#5548)"

This reverts commit affe5b8659.

* Revert "[Translation] Updated Translations (#5552)"

This reverts commit f3930a7026.

* Revert "Fix a bug with whitelisted method (#5551)"

This reverts commit 92e4db1dd9.

* Revert "Python 3 fixes for PR bot (#5554)"

This reverts commit 7b003a71bc.

* Revert "Replace frappe.db.sql to frappe.get_list to apply permissions (#5556)"

This reverts commit 2e52177f51.
2018-05-16 12:57:43 +05:30
Suraj Shetty
2e52177f51 Replace frappe.db.sql to frappe.get_list to apply permissions (#5556)
* Replace frappe.db.sql with frappe.get_list
- Permission check for treeviews

* Optimize get_role_permissions
- Avoid setting of roles each time when is_perm_appicable is called

* Fix codacy
- Remove trailing whitespace
2018-05-16 11:10:45 +05:30
Saurabh
7d150a49a3 [fix] pass is root parameter on node creation (#4730) 2018-01-01 16:12:10 +05:30
Rushabh Mehta
d5af6dd9c8
[fix] treeview fixes, adding title field (#4463)
* [fix] treeview fixes, adding title field

* [fix] [tree] add a flag is_root
2017-11-10 18:52:17 +05:30
Zarrar
f81bee7d05 minor fix to suppport treeview for task (#4279) 2017-10-17 12:23:42 +05:30
Nabin Hait
5c3bbe8ef4 Get parent node for tree view 2017-02-17 15:49:23 +05:30
Saurabh
8c0a67cde8 [fix] make tree params which includs custom mandatory params (#2571) 2017-01-12 11:26:14 +05:30
Rushabh Mehta
e0d582bfd4 [minor] expand all in tree frappe/erpnext#6915 (#2431) 2016-12-09 16:00:48 +05:30
Saurabh
7d5123dd54 [fix] pull all madatory fields from meta while creatting new node in tree 2016-09-19 16:45:07 +05:30
Saurabh
737a46bfec [fix] convert is_group from select type to check 2016-07-14 18:22:20 +05:30
Saurabh
3209cb274c [fixes] rename ctype to doctype 2016-06-25 09:35:57 +05:30
Saurabh
9323595708 [enhance] hookable treeview 2016-06-25 09:35:56 +05:30