fix(stock): validate POS Profile in get_pos_profile

This commit is contained in:
Mihir Kandoi
2026-10-23 06:29:06 +00:00
parent 18e4302b33
commit c6e725f82f
+1
View File
@@ -1454,6 +1454,7 @@ def get_pos_profile_item_details(company, args, pos_profile=None, update_data=Fa
@frappe.whitelist()
def get_pos_profile(company, pos_profile=None, user=None):
if pos_profile:
frappe.has_permission("POS Profile", "read", doc=pos_profile, throw=True)
return frappe.get_cached_doc("POS Profile", pos_profile)
if not user: