[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
This commit is contained in:
olt@tinyerp.com
2012-05-10 15:48:31 +02:00
parent 5415104047
commit c8a99a69b5
+1 -1
View File
@@ -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'),