[minor] [fix] in check_mandatory, ignore naming_series, since it is checked during doc's save

This commit is contained in:
Anand Doshi 2013-07-22 11:28:34 +05:30
parent 461b417871
commit 6f6e91c0fa
2 changed files with 3 additions and 3 deletions

View File

@ -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'

View File

@ -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)