Files
tryton/trytond/test/model.py
T

16 lines
414 B
Python
Raw Normal View History

2009-09-01 14:43:49 +02: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.
from trytond.model import ModelSingleton, ModelSQL, fields
class Singleton(ModelSingleton, ModelSQL):
'Singleton'
2010-03-04 14:02:27 +01:00
_name = 'test.singleton'
2009-09-01 14:43:49 +02:00
_description = __doc__
name = fields.Char('Name')
2010-08-19 22:01:12 +02:00
def default_name(self):
2009-09-01 14:43:49 +02:00
return 'test'
Singleton()