コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2565 ビュー

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')])
アバター
破棄
関連投稿 返信 ビュー 活動
1
9月 22
4357
0
4月 21
1776
1
5月 25
1110
1
4月 25
3567
1
3月 25
1217