Priyesh (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-574664-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-574664-pso/+merge/105066
Hello,
To reproduce the issue:
Configure asset category like this:
- Time method = Number of Depreciations
- Computation Method = Linear
- Prorata Temporis = False
- Number of Depreciations = 12
- Period Length = 3
Asset value : 684,75 Eur
After Computation, In Depreciation board, 'Amount to Depreciate' is not rounded
properly.
Kindly review it and guide me if I am wrong.
Thanks,
Priyesh Solanki
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574664-pso/+merge/105066
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-574664-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 12:42:20 +0000
@@ -158,6 +158,8 @@
for x in range(len(posted_depreciation_line_ids), undone_dotation_number):
i = x + 1
amount = self._compute_board_amount(cr, uid, asset, i, residual_amount, amount_to_depr, undone_dotation_number, posted_depreciation_line_ids, total_days, depreciation_date, context=context)
+ prec = self.pool.get('decimal.precision').precision_get(cr, uid, 'Account')
+ amount = round(amount, prec)
residual_amount -= amount
vals = {
'amount': amount,
_______________________________________________
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