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

The `model` has been added to the name_get.
This commit is contained in:
Martin Geubelle
2016-09-28 16:55:51 +02:00
committed by Géry Debongnie
parent f1affd7ae3
commit df724840f7
+7
View File
@@ -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):
"""