Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2569 Vizualizări

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns

Above code is not working

Imagine profil
Abandonează
Cel mai bun răspuns

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')])
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
sept. 22
4362
0
apr. 21
1781
1
mai 25
1116
1
apr. 25
3571
1
mar. 25
1217