[IMP] depreciation_lin_obj.create(cr, uid, vals, context=context)
bzr revid: bde@tiny2-desktop-20110524130445-b8m3qo2xk09v8qv1
This commit is contained in:
parent
e8c36f693a
commit
8ca21fbc2a
|
@ -110,13 +110,13 @@ class account_asset_asset(osv.osv):
|
|||
vals = {
|
||||
'amount': amount,
|
||||
'asset_id': asset.id,
|
||||
'sequence':i,
|
||||
'sequence': i,
|
||||
'name': str(asset.id) +'/'+ str(i),
|
||||
'remaining_value': residual_amount,
|
||||
'depreciated_value': asset.purchase_value - residual_amount,
|
||||
'depreciation_date': depreciation_date.strftime('%Y-%m-%d'),
|
||||
}
|
||||
self.pool.get('account.asset.depreciation.line').create(cr, uid, vals)
|
||||
depreciation_lin_obj.create(cr, uid, vals, context=context)
|
||||
month += asset.method_period
|
||||
depreciation_date = datetime(year + (month / 12), month % 12, day)
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue