[FIX] hr_payroll: access_right issue on employees form view.
This commit is contained in:
@@ -952,5 +952,5 @@ class hr_employee(osv.osv):
|
||||
_columns = {
|
||||
'slip_ids':fields.one2many('hr.payslip', 'employee_id', 'Payslips', required=False, readonly=True),
|
||||
'total_wage': fields.function(_calculate_total_wage, method=True, type='float', string='Total Basic Salary', digits_compute=dp.get_precision('Payroll'), help="Sum of all current contract's wage of employee."),
|
||||
'payslip_count': fields.function(_payslip_count, type='integer', string='Payslips'),
|
||||
'payslip_count': fields.function(_payslip_count, type='integer', string='Payslips', groups="base.group_hr_user"),
|
||||
}
|
||||
|
||||
@@ -395,8 +395,7 @@
|
||||
<button name="%(act_hr_employee_payslip_list)d"
|
||||
class="oe_stat_button"
|
||||
icon="fa-money"
|
||||
type="action"
|
||||
groups="base.group_hr_user">
|
||||
type="action">
|
||||
<field name="payslip_count" widget="statinfo" string="Payslips"/>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user