diff --git a/addons/hr_payroll/hr_payroll.py b/addons/hr_payroll/hr_payroll.py index 3d4071275a9..2003a847edf 100644 --- a/addons/hr_payroll/hr_payroll.py +++ b/addons/hr_payroll/hr_payroll.py @@ -214,7 +214,7 @@ class hr_payslip_run(osv.osv): ], 'State', select=True, readonly=True), 'date_start': fields.date('Date From', required=False), 'date_end': fields.date('Date To', required=False), - 'credit_note': fields.boolean('Credit Note', help="Indicates this payslip has a refund of another"), + 'credit_note': fields.boolean('Credit Note', help="If its True,indicates that payslips generated from here are refundable payslips."), } _defaults = { 'state': 'draft', diff --git a/addons/hr_payroll/hr_payroll_view.xml b/addons/hr_payroll/hr_payroll_view.xml index bf258346c43..d56f49f731f 100644 --- a/addons/hr_payroll/hr_payroll_view.xml +++ b/addons/hr_payroll/hr_payroll_view.xml @@ -649,11 +649,12 @@ form
- + - + + diff --git a/addons/hr_payroll/wizard/hr_payroll_payslips_by_employees.py b/addons/hr_payroll/wizard/hr_payroll_payslips_by_employees.py index 26ceb7e90a6..538d6ad7705 100644 --- a/addons/hr_payroll/wizard/hr_payroll_payslips_by_employees.py +++ b/addons/hr_payroll/wizard/hr_payroll_payslips_by_employees.py @@ -58,7 +58,7 @@ class hr_payslip_employees(osv.osv_memory): 'worked_days_line_ids': [(0, 0, x) for x in slip_data['value'].get('worked_days_line_ids', False)] } slip_ids.append(slip_pool.create(cr, uid, res, context=context)) - run_pool.write(cr, uid, context.get('active_ids', []), {'date_start': from_date, 'date_end': to_date}) + run_pool.write(cr, uid, context.get('active_ids', []), {'date_start': from_date, 'date_end': to_date}) slip_pool.compute_sheet(cr, uid, slip_ids, context=context) return {'type': 'ir.actions.act_window_close'}