[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:
committed by
Géry Debongnie
parent
f1affd7ae3
commit
df724840f7
@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user