[FIX] hr_payroll: access_right issue on employees form view.

This commit is contained in:
Yannick Tivisse
2015-08-12 14:54:30 +02:00
parent 7fc8577238
commit 8fb1446203
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -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"),
}
+1 -2
View File
@@ -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>