fix: pos profile not mandatory for Sales Invoice (#26876)

This commit is contained in:
Frappe PR Bot
2021-08-10 15:47:36 +05:30
committed by GitHub
parent 1776fc44b7
commit 1ba04fdfe5

View File

@@ -480,7 +480,7 @@ class SalesInvoice(SellingController):
if not self.pos_profile:
pos_profile = get_pos_profile(self.company) or {}
if not pos_profile:
frappe.throw(_("No POS Profile found. Please create a New POS Profile first"))
return
self.pos_profile = pos_profile.get('name')
pos = {}