[MERGE] forward port of branch saas-3 up to revid 5060 chs@openerp.com-20140206131116...
[odoo/odoo.git] / openerp / tests / addons / test_uninstall / models.py
1 # -*- coding: utf-8 -*-
2 import openerp
3 from openerp.osv import fields
4 from openerp.osv.orm import Model
5
6 class test_uninstall_model(Model):
7     """
8     This model uses different types of columns to make it possible to test
9     the uninstall feature of OpenERP.
10     """
11     _name = 'test_uninstall.model'
12
13     _columns = {
14         'name': fields.char('Name', size=64),
15         'ref': fields.many2one('res.users', string='User'),
16         'rel': fields.many2many('res.users', string='Users'),
17     }
18
19     _sql_constraints = [
20         ('name_uniq', 'unique (name)', 'Each name must be unique.')
21     ]
22
23 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: