Olivier Laurent (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-574652-olt into
lp:openobject-addons/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574652-olt/+merge/105453
In hr.expense, the 'amount' field had no decimal precision defined on it. This
field is listed in the expense list and is called 'Amount Total'.
Steps to reproduce:
* install sale, purchase, hr_expense
* set decimal precision = 4 for 'sale', 'purchase', 'account'
* create an expense with:
- quantity 12
- unit cost = 0.0001
In the expense list view, it should display an 'Amount Total' of 0.0012 but
instead it displays an 'Amount Total' of 0.0
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574652-olt/+merge/105453
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-574652-olt.
=== modified file 'hr_expense/hr_expense.py'
--- hr_expense/hr_expense.py 2012-02-13 18:07:41 +0000
+++ hr_expense/hr_expense.py 2012-05-11 08:43:20 +0000
@@ -72,7 +72,7 @@
'account_move_id': fields.many2one('account.move', 'Ledger Posting'),
'line_ids': fields.one2many('hr.expense.line', 'expense_id', 'Expense Lines', readonly=True, states={'draft':[('readonly',False)]} ),
'note': fields.text('Note'),
- 'amount': fields.function(_amount, string='Total Amount'),
+ 'amount': fields.function(_amount, string='Total Amount', digits_compute=dp.get_precision('Account')),
'invoice_id': fields.many2one('account.invoice', "Employee's Invoice"),
'currency_id': fields.many2one('res.currency', 'Currency', required=True),
'department_id':fields.many2one('hr.department','Department'),
_______________________________________________
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