mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +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:
|
if self.is_return:
|
||||||
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"
|
"POS Profile", self.pos_profile, "validate_stock_on_save"
|
||||||
):
|
):
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user