[REVERT] 056c06570c741fab1515978a957766b0a77bd80a and a5cf71973916f3e9b6ea578a614c76b...
authorJulien Legros <jle@odoo.com>
Wed, 5 Nov 2014 17:24:40 +0000 (18:24 +0100)
committerJulien Legros <jle@odoo.com>
Wed, 5 Nov 2014 17:26:34 +0000 (18:26 +0100)
addons/account_asset/account_asset.py

index 9cf4c14..806013e 100644 (file)
@@ -399,7 +399,7 @@ class account_asset_depreciation_line(osv.osv):
         created_move_ids = []
         asset_ids = []
         for line in self.browse(cr, uid, ids, context=context):
-            depreciation_date = context.get('depreciation_date') or line.depreciation_date or time.strftime('%Y-%m-%d')
+            depreciation_date = context.get('depreciation_date') or time.strftime('%Y-%m-%d')
             ctx = dict(context, account_period_prefer_normal=True)
             period_ids = period_obj.find(cr, uid, depreciation_date, context=ctx)
             company_currency = line.asset_id.company_id.currency_id.id