Merge pull request #6734 from KanchanChauhan/default-warehouse-in-item
Default warehouse in Item master
This commit is contained in:
commit
952c9cccfc
@ -342,3 +342,4 @@ erpnext.patches.v7_0.repost_bin_qty_and_item_projected_qty
|
||||
erpnext.patches.v7_1.set_prefered_contact_email
|
||||
execute:frappe.db.sql("update `tabSingles` set value = 1 where field = 'unlink_payment_on_cancellation_of_invoice' and doctype = 'Accounts Settings'")
|
||||
execute:frappe.db.sql("update `tabStock Entry` set total_amount = null where purpose in('Repack', 'Manufacture')")
|
||||
erpnext.patches.v7_1.save_stock_settings
|
7
erpnext/patches/v7_1/save_stock_settings.py
Normal file
7
erpnext/patches/v7_1/save_stock_settings.py
Normal file
@ -0,0 +1,7 @@
|
||||
from __future__ import unicode_literals
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
stock_settings = frappe.get_doc('Stock Settings')
|
||||
stock_settings.flags.ignore_mandatory = True
|
||||
stock_settings.save()
|
@ -10,7 +10,7 @@ from frappe.model.document import Document
|
||||
|
||||
class StockSettings(Document):
|
||||
def validate(self):
|
||||
for key in ["item_naming_by", "item_group", "stock_uom", "allow_negative_stock"]:
|
||||
for key in ["item_naming_by", "item_group", "stock_uom", "allow_negative_stock", "default_warehouse"]:
|
||||
frappe.db.set_default(key, self.get(key, ""))
|
||||
|
||||
from erpnext.setup.doctype.naming_series.naming_series import set_by_naming_series
|
||||
|
Loading…
Reference in New Issue
Block a user