Commit 7d0e0c2d authored by Cédric Bonhomme's avatar Cédric Bonhomme

Removed test classes.

parent 5edf3141
......@@ -12,36 +12,6 @@
from openerp.osv import osv, fields
def _check_length(self, cr, uid, ids, context=None):
for record in self.browse(cr, uid, ids, context=context):
if record.value < 20:
return False
return True
class Test1(osv.osv):
_name = 'ecologistics.test'
_columns = {
'name': fields.char('Name', required=True, size=20),
'value': fields.integer('Value', required=True),
}
_defaults = {
'value': lambda self, cr, uid, context: 20,
}
_constraints = [
(_check_length, 'Length must be greater or equal than 20', ['value']),
]
class Test2(osv.osv):
_name = 'ecologistics.test2'
_columns = {
'name': fields.text('Name', required=True),
'reference': fields.many2one('ecologistics.test', 'Reference'),
}
class Product(osv.osv):
"""
"""
......@@ -72,7 +42,5 @@ class EQ_bizStep(osv.osv):
('hash_unique', 'UNIQUE(hash)', 'Each hash is unique.'),
]
#Test1()
#Test2()
Product()
EQ_bizStep()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment