Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2609 Переглядів

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

Аватар
Відмінити
Автор Найкраща відповідь

Above code is not working

Аватар
Відмінити
Найкраща відповідь

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')])
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
Domain In Payroll Rule Вирішено
1
вер. 22
4377
0
квіт. 21
1810
1
трав. 25
1246
1
квіт. 25
3645
1
бер. 25
1281