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

This commit is contained in:
Afshan 2021-08-10 14:16:16 +05:30 committed by GitHub
parent 94beda65ca
commit af2f5277d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = {}