trytonpsk-staff_payroll_co/position.py

24 lines
848 B
Python
Raw Permalink Normal View History

2020-11-04 02:24:58 +01:00
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
2020-04-16 00:38:42 +02:00
from trytond.model import fields
from trytond.pool import PoolMeta
2020-11-04 02:24:58 +01:00
class Position(metaclass=PoolMeta):
2020-04-16 00:38:42 +02:00
__name__ = 'staff.position'
adjust_days_worked = fields.Boolean('Adjust Days Worked',
help='If is true, rounded month work days on payroll to 30 indeed'
2020-11-04 02:24:58 +01:00
' if month has 31 days, or rounded to 15 indeed the biweekly'
' pay has 16 days'
)
2020-04-16 00:38:42 +02:00
partial_sunday = fields.Boolean('Partial Sunday',
help='If is true, sunday day is pay for partial amount if start '
'or end contract in its period')
@classmethod
def __setup__(cls):
super(Position, cls).__setup__()
def default_adjust_days_worked():
return True