mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 21:48:27 +00:00
fix: 'int' object has no attribute 'is_draft'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user