feature/share_module #25
|
|
@ -10,7 +10,7 @@
|
|||
<separator string="Employees Selection"/>
|
||||
<div class="o_row ms-2">
|
||||
<group>
|
||||
<field name="department_id" class="w-75"
|
||||
<field name="department_id" class="w-75" placeholder="All"
|
||||
help="Set a specific department if you wish to select all the employees from this department (and subdepartments) at once."/>
|
||||
<field name="job_id" class="w-75" invisible="not department_id" domain="[('department_id', 'child_of', department_id)]"
|
||||
help="Set a specific job if you wish to select all the employees from this job at once."/>
|
||||
|
|
@ -95,4 +95,27 @@
|
|||
action = env['hr.payslip.employees'].create({}).compute_sheet()
|
||||
</field>
|
||||
</record>
|
||||
<record id="hr_hr_employee_view_form3_inherit_salary_contract" model="ir.ui.view">
|
||||
<field name="name">hr.hr.employee.view.form3.inherit.salary.contract</field>
|
||||
<field name="model">hr.employee</field>
|
||||
<field name="inherit_id" ref="hr_contract.hr_hr_employee_view_form3"/>
|
||||
<field name="arch" type="xml">
|
||||
|
||||
<xpath expr="//button[@name='action_open_contract']" position="replace">
|
||||
<button name="action_open_contract"
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-book"
|
||||
string="Employee Salary"
|
||||
groups="hr_contract.group_hr_contract_manager"
|
||||
context="{
|
||||
'default_employee_id': id,
|
||||
'default_resource_calendar_id': resource_calendar_id.id or False,
|
||||
'from_action_open_contract': True
|
||||
}"
|
||||
invisible="employee_type not in ['employee', 'student', 'trainee']"/>
|
||||
</xpath>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<odoo>
|
||||
<menuitem
|
||||
id="hr_payroll.menu_hr_payroll_employees_root"
|
||||
name="Contracts"
|
||||
name="Employee Salary Contract"
|
||||
parent="hr_payroll.menu_hr_payroll_root"
|
||||
sequence="1"
|
||||
action="hr_contract.action_hr_contract"
|
||||
|
|
|
|||
Loading…
Reference in New Issue