Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2562 Vistas

How to setup a state named onhold in payroll process along with draft and done because we need salary of few employees on hold. Suppose if an employee going to relieve by next month end, we will hold this month and settle the entire amount in next month.

Help us hos to handle this scenario

Avatar
Descartar
Autor Mejor respuesta

Above code is not working

Avatar
Descartar
Mejor respuesta

Inherit the model hr.payslip and you can add the new value to the state field, add below code in the Python side and do necessary changes in the views like adding button to control this state etc


class HrPayslip(models.Model):
_inherit = 'hr.payslip'

state = fields.Selection(
selection_add=[('hold', 'On Hold')])
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
sept 22
4357
0
abr 21
1772
1
may 25
1107
1
abr 25
3567
1
mar 25
1217