跳至內容
選單
此問題已被標幟
2 回覆
2589 瀏覽次數

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
4367
0
4月 21
1805
1
5月 25
1167
1
4月 25
3597
1
3月 25
1231