Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
2571 Weergaven

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
Annuleer
Auteur Beste antwoord

Above code is not working

Avatar
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
sep. 22
4363
0
apr. 21
1784
1
mei 25
1126
1
apr. 25
3572
1
mrt. 25
1217