fix: use qb for functions

This commit is contained in:
Rohit Waghchaure
2025-11-17 12:55:10 +05:30
committed by Akhil Narang
parent ec4d4a0d6c
commit d40e660a52
9 changed files with 23 additions and 15 deletions

View File

@@ -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",
)