diff options
| author | olt@tinyerp.com <> | 2012-05-10 15:48:31 +0200 |
|---|---|---|
| committer | olt@tinyerp.com <> | 2012-05-10 15:48:31 +0200 |
| commit | c8a99a69b5c2aaa93b93790070d3084cb5cdb4e7 (patch) | |
| tree | eaa98df73fadf37860843966d9acf75243987a87 | |
| parent | 541510404787daabd7718b29c02dc009ca317c52 (diff) | |
[FIX] hr_expense: when listing expenses in tree view, the 'amount' computed field is not respecting the defined decimal precision
bzr revid: olt@tinyerp.com-20120510134831-s2hmnjdrj5ba9ipj
| -rw-r--r-- | addons/hr_expense/hr_expense.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py index bac38acee08..4461937389d 100644 --- a/addons/hr_expense/hr_expense.py +++ b/addons/hr_expense/hr_expense.py @@ -72,7 +72,7 @@ class hr_expense_expense(osv.osv): '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'), |
