mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
* reverting ot v12.7.1
* fix: Dimension filter query fix to not display disabled dimensions
Co-authored-by: Subin Tom <subin-home@Subins-MacBook-Air.local>
Co-authored-by: Afshan <33727827+AfshanKhan@users.noreply.github.com>
(cherry picked from commit 333e44eb47)
Co-authored-by: Subin Tom <36098155+nemesis189@users.noreply.github.com>
Co-authored-by: Afshan <33727827+AfshanKhan@users.noreply.github.com>
This commit is contained in:
@@ -526,6 +526,9 @@ def get_filtered_dimensions(doctype, txt, searchfield, start, page_len, filters)
|
|||||||
if meta.is_tree:
|
if meta.is_tree:
|
||||||
query_filters.append(['is_group', '=', 0])
|
query_filters.append(['is_group', '=', 0])
|
||||||
|
|
||||||
|
if meta.has_field('disabled'):
|
||||||
|
query_filters.append(['disabled', '!=', 1])
|
||||||
|
|
||||||
if meta.has_field('company'):
|
if meta.has_field('company'):
|
||||||
query_filters.append(['company', '=', filters.get('company')])
|
query_filters.append(['company', '=', filters.get('company')])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user