diff options
| author | fda-odoo <fda@odoo.com> | 2017-10-31 17:36:54 +0100 |
|---|---|---|
| committer | fda-odoo <fda@odoo.com> | 2018-01-25 15:51:57 +0100 |
| commit | 2df2afc4058f25fd120947dc4d782cf7336a67d5 (patch) | |
| tree | 3e26ced698e8787447168ab50d5fce46a766dc59 /addons/hr_expense/static/src/js | |
| parent | ab8f5ec95d41fdab501cb4c5b5b8e0218f337942 (diff) | |
[IMP] hr_expense: improve useability of hr_expense
- Change the differents states of hr.expense to have
ToSubmit, submitted, approved, refused and paid.
- Add a responsible field on employee model. The responsible is a res.user that belong to the group "hr_expense.group_hr_expense_manager"
The commit change too a "vals" variable that changed in a git rebase operation.
- Make the other_info tab invisible if the user doesn't belong to account.group_account_user.
- Make expense wizard (for expense lines) editable if expense is in reported mode, so when the sheet is in To submit state.
- Move a tour from expense form to expense_sheet form
- rename two fields (attachments and manager)
- The buttons "approve" and "expense" must be hidden if the user isn't the expense responsible.
- The description field of expense line must be editable in draft, reported and refused state
- Add a subtype to follow responsible changes on expenses sheets
Diffstat (limited to 'addons/hr_expense/static/src/js')
| -rw-r--r-- | addons/hr_expense/static/src/js/tour.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_expense/static/src/js/tour.js b/addons/hr_expense/static/src/js/tour.js index 2c757c5e62e..7f53ae364cc 100644 --- a/addons/hr_expense/static/src/js/tour.js +++ b/addons/hr_expense/static/src/js/tour.js @@ -22,7 +22,7 @@ tour.register('hr_expense_tour' , position: 'bottom' }, { trigger: '.o_form_button_save', - extra_trigger: ".o_expense_form", + extra_trigger: ".o_expense_sheet", content: _t("<p>Once your <b>Expense report</b> is ready, you can save it and wait for the approval from your manager.</p>"), position: 'bottom', }, { |
