Update save_stock_settings.py

This commit is contained in:
Nabin Hait 2016-10-29 14:43:58 +05:30 committed by GitHub
parent 4c22825f01
commit 5fc624b9ed

View File

@ -3,4 +3,5 @@ import frappe
def execute():
stock_settings = frappe.get_doc('Stock Settings')
stock_settings.save()
stock_settings.flags.ignore_mandatory = True
stock_settings.save()