[IMP] Change argument.

bzr revid: vba@tinyerp.com-20121121112038-8n21ntn7m25j73i6
This commit is contained in:
Vijaykumar Baladaniya
2012-11-21 16:50:38 +05:30
parent 81b9e073ee
commit 7efa6b7685
+1 -1
View File
@@ -66,7 +66,7 @@ class account_invoice(osv.osv):
'section_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).default_section_id.id,
}
def create(self, cr, uid, vals, context=None):
def create(self, cr, uid, vals, context={}):
section_id = vals.get('section_id', False)
invoice_type = context.get('type', False)
user_id = vals.get('user_id', False)