From 6f6e91c0faa85d73367c9929f9571bd784d06a6b Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 22 Jul 2013 11:28:34 +0530 Subject: [PATCH] [minor] [fix] in check_mandatory, ignore naming_series, since it is checked during doc's save --- stock/doctype/stock_entry/stock_entry.py | 2 +- stock/utils.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stock/doctype/stock_entry/stock_entry.py b/stock/doctype/stock_entry/stock_entry.py index 47c0a750da..d38962005e 100644 --- a/stock/doctype/stock_entry/stock_entry.py +++ b/stock/doctype/stock_entry/stock_entry.py @@ -36,7 +36,7 @@ class StockOverReturnError(webnotes.ValidationError): pass from controllers.stock_controller import StockController class DocType(StockController): - def __init__(self, doc, doclist=[]): + def __init__(self, doc, doclist=None): self.doc = doc self.doclist = doclist self.fname = 'mtn_details' diff --git a/stock/utils.py b/stock/utils.py index 942c200f52..da4752e2b3 100644 --- a/stock/utils.py +++ b/stock/utils.py @@ -254,7 +254,7 @@ def create_material_request(material_requests): items = material_requests[request_type][company] if not items: continue - + mr = [{ "doctype": "Material Request", "company": company, @@ -287,7 +287,7 @@ def create_material_request(material_requests): mr_bean.insert() mr_bean.submit() mr_list.append(mr_bean) - + except: if webnotes.message_log: exceptions_list.append([] + webnotes.message_log)