[fix] POS profile patch (#11501)
This commit is contained in:
parent
99e31f97b8
commit
1ce48e7032
@ -11,7 +11,7 @@ def execute():
|
||||
for pos in frappe.get_all(doctype, filters={'disabled': 0}):
|
||||
doc = frappe.get_doc(doctype, pos.name)
|
||||
|
||||
if not doc.user and doc.pos_profile_name: continue
|
||||
if not doc.user or doc.pos_profile_name: continue
|
||||
|
||||
try:
|
||||
doc.pos_profile_name = doc.user + ' - ' + doc.company
|
||||
|
Loading…
x
Reference in New Issue
Block a user