Priyesh (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-574663-pso into
lp:openobject-addons/6.1.
Requested reviews:
Xavier ALT (OpenERP) (xal-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574663-pso/+merge/105047
Hello,
To reproduce the issue:
Create an asset with linear and prorata temporis, compute it and confirm asset.
>From Depreciation board, Create move lines and check the period.
It should be of Depreciation date from Depreciation line , not of Purchase date
of asset.
Kindly review it and guide me, If I am wrong.
Thanks,
Priyesh Solanki
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574663-pso/+merge/105047
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-574663-pso.
=== modified file 'account_asset/account_asset.py'
--- account_asset/account_asset.py 2012-01-31 13:36:57 +0000
+++ account_asset/account_asset.py 2012-05-08 09:49:18 +0000
@@ -355,7 +355,7 @@
for line in self.browse(cr, uid, ids, context=context):
if currency_obj.is_zero(cr, uid, line.asset_id.currency_id, line.remaining_value):
can_close = True
- depreciation_date = line.asset_id.prorata and line.asset_id.purchase_date or time.strftime('%Y-%m-%d')
+ depreciation_date = line.depreciation_date
period_ids = period_obj.find(cr, uid, depreciation_date, context=context)
company_currency = line.asset_id.company_id.currency_id.id
current_currency = line.asset_id.currency_id.id
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp