[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:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user