콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
2618 화면

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
4380
0
4월 21
1817
1
5월 25
1262
1
4월 25
3653
1
3월 25
1282