Skip to content
Snippets Groups Projects
Commit df724840 authored by Martin Geubelle's avatar Martin Geubelle Committed by Géry Debongnie
Browse files

[IMP] base: add model to name_get on ir.model.fields

The `model` has been added to the name_get.
parent f1affd7a
No related branches found
No related tags found
No related merge requests found
......@@ -550,6 +550,13 @@ class IrModelFields(models.Model):
return res
@api.multi
def name_get(self):
res = []
for field in self:
res.append((field.id, '%s (%s)' % (field.field_description, field.model)))
return res
class IrModelConstraint(models.Model):
"""
......
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