İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
2792 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

Above code is not working

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Eyl 22
4594
0
Nis 21
1986
1
Eyl 25
563
1
May 25
1786
1
Nis 25
4157