brotherton-erpnext/erpnext/patches/v7_1/save_stock_settings.py

8 lines
190 B
Python
Raw Normal View History

2016-10-27 23:56:04 +05:30
from __future__ import unicode_literals
import frappe
def execute():
stock_settings = frappe.get_doc('Stock Settings')
2016-10-29 14:43:58 +05:30
stock_settings.flags.ignore_mandatory = True
stock_settings.save()