Bharat Devnani (Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1046657-bde into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1046657 in OpenERP Addons: "[6.1] [Trunk] Asset depreciation journal 
entry incorrect"
  https://bugs.launchpad.net/openobject-addons/+bug/1046657

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1046657-bde/+merge/123691

Hello Sir,

I have made some changes in calculation of depreciation_date in def create_move 
of account_asset.py
to consider the current system date in Journal Entries irrespective of Prorata 
Temporis option in Account Asset.

Thanks & Regards,
Devnani Bharat R.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1046657-bde/+merge/123691
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1046657-bde.
=== modified file 'account_asset/account_asset.py'
--- account_asset/account_asset.py	2012-07-19 07:31:36 +0000
+++ account_asset/account_asset.py	2012-09-11 08:37:19 +0000
@@ -368,7 +368,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 = time.strftime('%Y-%m-%d')
             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

Reply via email to