[IMP] hr(_expense,_holidays): modify help message
In Employee / Work information / Responsible: there is a lack of information on the "help message" The objective is to change text in the help message by the ones below: Field "Coach": -Employee responsible of this employee. -The "coach" has no specific rignts or responsibilities by default. Field "Time Off": -User responsible for approving "time off" of this employee. -If empty, the approval is done by any administrators or approvers (determinated in settings/users) Field "expense": -User responsible for approving "Expenses" of this employee. -If empty, the approval is done by any administrators or approvers (determinated in settings/users) TaskId :2168330 closes odoo/odoo#43467 Closes: #43467 Related: odoo/enterprise#7778 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
committed by
Barad Mahendra
parent
ffe324877d
commit
b7c5b28b9c
@@ -31,7 +31,9 @@ class HrEmployeeBase(models.AbstractModel):
|
||||
parent_id = fields.Many2one('hr.employee', 'Manager', domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]")
|
||||
coach_id = fields.Many2one(
|
||||
'hr.employee', 'Coach', compute='_compute_coach', store=True, readonly=False,
|
||||
domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]")
|
||||
domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]",
|
||||
help='Select the "Employee" who is the coach of this employee.\n'
|
||||
'The "Coach" has no specific rights or responsibilities by default.')
|
||||
tz = fields.Selection(
|
||||
string='Timezone', related='resource_id.tz', readonly=False,
|
||||
help="This field is used in order to define in which timezone the resources will work.")
|
||||
|
||||
@@ -21,7 +21,8 @@ class Employee(models.Model):
|
||||
'res.users', string='Expense',
|
||||
domain=_group_hr_expense_user_domain,
|
||||
compute='_compute_expense_manager', store=True, readonly=False,
|
||||
help="User responsible of expense approval. Should be Expense approver.")
|
||||
help='Select the user responsible for approving "Expenses" of this employee.\n'
|
||||
'If empty, the approval is done by an Administrator or Approver (determined in settings/users).')
|
||||
|
||||
@api.depends('parent_id')
|
||||
def _compute_expense_manager(self):
|
||||
|
||||
@@ -13,7 +13,8 @@ class HrEmployeeBase(models.AbstractModel):
|
||||
leave_manager_id = fields.Many2one(
|
||||
'res.users', string='Time Off',
|
||||
compute='_compute_leave_manager', store=True, readonly=False,
|
||||
help="User responsible of leaves approval.")
|
||||
help='Select the user responsible for approving "Time Off" of this employee.\n'
|
||||
'If empty, the approval is done by an Administrator or Approver (determined in settings/users).')
|
||||
remaining_leaves = fields.Float(
|
||||
compute='_compute_remaining_leaves', string='Remaining Paid Time Off',
|
||||
help='Total number of paid time off allocated to this employee, change this value to create allocation/time off request. '
|
||||
|
||||
Reference in New Issue
Block a user