Correct Residual Value Field
authorbde <bde@tiny2-desktop>
Tue, 24 May 2011 06:25:30 +0000 (11:55 +0530)
committerbde <bde@tiny2-desktop>
Tue, 24 May 2011 06:25:30 +0000 (11:55 +0530)
bzr revid: bde@tiny2-desktop-20110524062530-nlf687clyazmyowj

addons/account_asset/account_asset.py

index 4220fe0..6a26500 100644 (file)
@@ -357,6 +357,7 @@ class account_asset_depreciation_line(osv.osv):
                 'amount_currency': company_currency <> current_currency and sign * line.amount or 0.0,
                 'analytic_account_id': line.asset_id.category_id.account_analytic_id.id,
                 'date': depreciation_date,
+                'asset_id': line.asset_id.id
             })
             self.write(cr, uid, line.id, {'move_id': move_id}, context=context)
         return True