From 1ce48e7032070cda0c5f503a7b52a8799dd632d3 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Fri, 10 Nov 2017 10:53:12 +0530 Subject: [PATCH] [fix] POS profile patch (#11501) --- erpnext/patches/v9_0/set_pos_profile_name.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v9_0/set_pos_profile_name.py b/erpnext/patches/v9_0/set_pos_profile_name.py index 3ae3774e3e7..1958e2c777a 100644 --- a/erpnext/patches/v9_0/set_pos_profile_name.py +++ b/erpnext/patches/v9_0/set_pos_profile_name.py @@ -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