[IMP] account_asset : Improved the code

bzr revid: mdi@tinyerp.com-20111214054834-4n76v1ecivprz65r
This commit is contained in:
Divyesh Makwana (Open ERP) 2011-12-14 11:18:34 +05:30
parent 8b000f3009
commit dc57899ea6
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ class account_asset_asset(osv.osv):
res.setdefault(id, 0.0)
return res
def onchange_company_id(self, cr, uid, ids, company_id, context=None):
def onchange_company_id(self, cr, uid, ids, company_id=False, context=None):
val = {}
if company_id:
company = self.pool.get('res.company').browse(cr, uid, company_id, context=context)