New _constraints definition

This commit is contained in:
Cédric Krier committed 2008-03-04 11:50:48 +01:00
1 parent e99009fcc7
commit eece88f0d2
1 file changed
+2 -2
+2 -2
View File
@@ -36,8 +36,8 @@ class User(OSV):
def __init__(self):
super(User, self).__init__()
self._context_fields = self._context_fields + ['company']
self._constraints = self._constraints + [
self._context_fields += ['company']
self._constraints += [
('check_company',
'Error! You can not set a company that is not ' \
'a child of your main company.', ['company']),