mirror of
https://github.com/NaN-tic/trytond-project_template.git
synced 2023-12-14 02:02:58 +01:00
16 lines
681 B
Python
16 lines
681 B
Python
#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 ModelView, ModelSQL, ModelSingleton, fields
|
|
from trytond.pyson import Eval
|
|
|
|
__all__ = ['Configuration']
|
|
|
|
|
|
class Configuration(ModelSingleton, ModelSQL, ModelView):
|
|
'Project Template Configuration'
|
|
__name__ = 'project.template.configuration'
|
|
default_template = fields.Property(fields.Many2One('project.work',
|
|
'Default Template', domain=[
|
|
('company', 'in', [Eval('context', {}).get('company', 0)]),
|
|
('template', '=', True),
|
|
], required=True))
|