Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
2583 มุมมอง

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
4363
0
เม.ย. 21
1793
1
พ.ค. 25
1138
1
เม.ย. 25
3575
1
มี.ค. 25
1218