Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
2593 Vues

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
Ignorer
Auteur Meilleure réponse

Above code is not working

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
1
sept. 22
4368
0
avr. 21
1806
1
mai 25
1208
1
avr. 25
3614
1
mars 25
1268