From 40bb8599dd6cacb45599f3aa16edccc641a8d032 Mon Sep 17 00:00:00 2001 From: "nel@tinyerp.com" <> Date: Mon, 29 Mar 2010 11:50:29 +0200 Subject: [PATCH] [IMP] improve views of expense bzr revid: nel@tinyerp.com-20100329095029-crh321t0u57r1d8u --- addons/hr_expense/hr_expense.py | 8 ++++---- addons/hr_expense/hr_expense_view.xml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py index 3c99276f7f8..d4747758682 100644 --- a/addons/hr_expense/hr_expense.py +++ b/addons/hr_expense/hr_expense.py @@ -56,17 +56,17 @@ class hr_expense_expense(osv.osv): 'id': fields.integer('Sheet ID', readonly=True), 'ref': fields.char('Reference', size=32), 'date': fields.date('Date'), - 'journal_id': fields.many2one('account.journal', 'Force Journal'), + 'journal_id': fields.many2one('account.journal', 'Force Journal', help = "The journal used when the expense is invoiced"), 'employee_id': fields.many2one('hr.employee', "Employee's Name", required=True), 'user_id': fields.many2one('res.users', 'User', required=True), - 'date_confirm': fields.date('Date Confirmed'), - 'date_valid': fields.date('Date Validated'), + 'date_confirm': fields.date('Confirmation Date', help = "Date of the confirmation of the sheet expense. It's filled when the button Confirm is pressed."), + 'date_valid': fields.date('Validation Date', help = "Date of the acceptation of the sheet expense. It's filled when the button Accept is pressed."), 'user_valid': fields.many2one('res.users', 'Validation User'), '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, method=True, string='Total Amount'), - 'invoice_id': fields.many2one('account.invoice', 'Invoice'), + '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'), 'company_id': fields.many2one('res.company', 'Company', required=True), diff --git a/addons/hr_expense/hr_expense_view.xml b/addons/hr_expense/hr_expense_view.xml index 16828a87a1a..0cf1b941b5c 100644 --- a/addons/hr_expense/hr_expense_view.xml +++ b/addons/hr_expense/hr_expense_view.xml @@ -68,7 +68,7 @@ - + @@ -77,7 +77,6 @@ -
@@ -108,8 +107,8 @@ - - + + @@ -145,6 +144,7 @@ help="Expenses to Invoice"/> +