Skip to content
Snippets Groups Projects
Commit 2859d24c authored by Raphael Collet's avatar Raphael Collet
Browse files

Merge pull request #996 from odoo-dev/8.0-id-field-type-rco

[FIX] fields: add a type to field Id; this fixes #990
parents e9fae40f 3fdc2323
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment