Merge pull request #17134 from rohitwaghchaure/not_able_to_change_pos_profile

fix: not able to change pos profile
This commit is contained in:
rohitwaghchaure 2019-04-04 15:42:28 +05:30 committed by GitHub
commit 0a57ef4bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -155,7 +155,6 @@ def pos_profile_query(doctype, txt, searchfield, start, page_len, filters):
def set_default_profile(pos_profile, company): def set_default_profile(pos_profile, company):
modified = now() modified = now()
user = frappe.session.user user = frappe.session.user
company = frappe.db.escape(company)
if pos_profile and company: if pos_profile and company:
frappe.db.sql(""" update `tabPOS Profile User` pfu, `tabPOS Profile` pf frappe.db.sql(""" update `tabPOS Profile User` pfu, `tabPOS Profile` pf