default_active must return a boolean
This commit is contained in:
1 parent
35dce65a81
commit
a9b0fe85a3
1 file changed
+1
-1
+1
-1
@@ -40,7 +40,7 @@ class Category(ModelSQL, ModelView):
|
||||
self._order.insert(1, ('name', 'ASC'))
|
||||
|
||||
def default_active(self):
|
||||
return 1
|
||||
return True
|
||||
|
||||
def check_name(self, ids):
|
||||
for category in self.browse(ids):
|
||||
|
||||
Reference in new issue
Block a user