mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 02:44:52 +00:00
fix: use qb for functions
This commit is contained in:
committed by
Akhil Narang
parent
ec4d4a0d6c
commit
d40e660a52
@@ -8,7 +8,7 @@ import frappe
|
||||
def execute():
|
||||
warehouse_perm = frappe.get_all(
|
||||
"User Permission",
|
||||
fields=["count(*) as p_count", "is_default", "user"],
|
||||
fields=[{"COUNT": "*", "as": "p_count"}, "is_default", "user"],
|
||||
filters={"allow": "Warehouse"},
|
||||
group_by="user",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user