/usr/lib/python2.7/dist-packages/trytond/modules/company_work_time/company.py is in tryton-modules-company-work-time 3.8.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | # 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
__all__ = ['Company']
__metaclass__ = PoolMeta
class Company:
__name__ = 'company.company'
hours_per_work_day = fields.Float("Hours per Work Day", required=True)
hours_per_work_week = fields.Float("Hours per Work Week", required=True)
hours_per_work_month = fields.Float("Hours per Work Month", required=True)
hours_per_work_year = fields.Float("Hours per Work Year", required=True)
@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
|