[fix] POS profile patch (#11501)

This commit is contained in:
rohitwaghchaure 2017-11-10 10:53:12 +05:30 committed by Nabin Hait
parent 99e31f97b8
commit 1ce48e7032

View File

@ -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