* fix: fail migration due to None type * fix: incorrect key: value pair in filter. Co-authored-by: Ankush Menat <ankush@iwebnotes.com> (cherry picked from commit becf471a3a238cfaa20a8940e0106c7e0e0386c2) Co-authored-by: Devin Slauenwhite <devin.slauenwhite@gmail.com>
This commit is contained in:
parent
dae0a1c1d6
commit
a52d4c25ff
@ -13,7 +13,7 @@ def execute():
|
|||||||
frappe.reload_doc('stock', 'doctype', 'stock_settings')
|
frappe.reload_doc('stock', 'doctype', 'stock_settings')
|
||||||
|
|
||||||
def update_from_return_docs(doctype):
|
def update_from_return_docs(doctype):
|
||||||
for return_doc in frappe.get_all(doctype, filters={'is_return' : 1, 'docstatus' : 1}):
|
for return_doc in frappe.get_all(doctype, filters={'is_return' : 1, 'docstatus' : 1, 'return_against': ('!=', '')}):
|
||||||
# Update original receipt/delivery document from return
|
# Update original receipt/delivery document from return
|
||||||
return_doc = frappe.get_cached_doc(doctype, return_doc.name)
|
return_doc = frappe.get_cached_doc(doctype, return_doc.name)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user