mirror of
https://github.com/frappe/erpnext.git
synced 2026-10-29 22:57:42 +00:00
fix(stock): validate POS Profile in get_pos_profile
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user