fix: 'int' object has no attribute 'is_draft'

This commit is contained in:
Saqib Ansari
2022-03-31 16:17:51 +05:30
parent ab7417c26a
commit 8d315a6573

View File

@@ -214,7 +214,7 @@ class POSInvoice(SalesInvoice):
if self.is_return:
return
if self.docstatus.is_draft() and not frappe.db.get_value(
if self.docstatus == 0 and not frappe.db.get_value(
"POS Profile", self.pos_profile, "validate_stock_on_save"
):
return