first commit
This commit is contained in:
29
modules/company_work_time/company.py
Normal file
29
modules/company_work_time/company.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
|
||||
class Company(metaclass=PoolMeta):
|
||||
__name__ = 'company.company'
|
||||
|
||||
hours_per_work_day = fields.Float("Hours per Work Day")
|
||||
hours_per_work_week = fields.Float("Hours per Work Week")
|
||||
hours_per_work_month = fields.Float("Hours per Work Month")
|
||||
hours_per_work_year = fields.Float("Hours per Work Year")
|
||||
|
||||
@staticmethod
|
||||
def default_hours_per_work_day():
|
||||
return 8
|
||||
|
||||
@staticmethod
|
||||
def default_hours_per_work_week():
|
||||
return 40
|
||||
|
||||
@staticmethod
|
||||
def default_hours_per_work_month():
|
||||
return 160
|
||||
|
||||
@staticmethod
|
||||
def default_hours_per_work_year():
|
||||
return 1920
|
||||
Reference in New Issue
Block a user