[IMP] account_asset : Improved the code
bzr revid: mdi@tinyerp.com-20111214054834-4n76v1ecivprz65r
This commit is contained in:
parent
8b000f3009
commit
dc57899ea6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue