brotherton-erpnext/erpnext/patches/v8_7/fix_purchase_receipt_status.py

13 lines
308 B
Python

from __future__ import unicode_literals
import frappe
def execute():
# there is no more status called "Submitted", there was an old issue that used
# to set it as Submitted, fixed in this commit
frappe.db.sql("""
update
`tabPurchase Receipt`
set
status = 'To Bill'
where
status = 'Submitted'""")