[FIX] fields: add a type to field Id; this fixes #990

This commit is contained in:
Raphael Collet
2014-07-08 13:29:45 +02:00
parent e9fae40faf
commit 3fdc232352
+3
View File
@@ -1542,6 +1542,9 @@ class Id(Field):
store = True
readonly = True
def __init__(self, string=None, **kwargs):
super(Id, self).__init__(type='integer', string=string, **kwargs)
def to_column(self):
return fields.integer('ID')