lims_interface: fix ID field in data

This commit is contained in:
Adrián Bernardi 2020-03-24 09:40:55 -03:00
parent 41e0b7f022
commit 5de918d58e
1 changed files with 3 additions and 4 deletions

View File

@ -67,10 +67,9 @@ class Adapter:
obj = fields.Binary(field.string)
obj.name = field.name
res[field.name] = obj
if 'id' not in res:
obj = fields.Integer('ID')
obj.name = 'id'
res[field.name] = obj
obj = fields.Integer('ID')
obj.name = 'id'
res['id'] = obj
obj = fields.Many2One('lims.interface.compilation', 'Compilation')
obj.name = 'compilation'
res['compilation'] = obj