Files
tryton/trytond/test/model.py
T
Cédric Krier 20741b613d Improve unittests to run trytond from tests
Use sqlite as default backend
Add skiptest attribute to data tag
Add option to test_tryton to run tests from all modules
2010-03-04 14:02:27 +01:00

17 lines
442 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 ModelSingleton, ModelSQL, fields
class Singleton(ModelSingleton, ModelSQL):
'Singleton'
_name = 'test.singleton'
_description = __doc__
name = fields.Char('Name')
def default_name(self, cursor, user, context=None):
return 'test'
Singleton()