[FIX] fields: translations of the help of inherited fields

This is similar to revision 54140331f3

opw-673716
This commit is contained in:
Denis Ledoux 2016-06-06 11:42:30 +02:00
parent eb48b94cea
commit 950fd97d06
1 changed files with 2 additions and 1 deletions

View File

@ -695,7 +695,8 @@ class Field(object):
def _description_help(self, env):
if self.help and env.lang:
name = "%s,%s" % (self.model_name, self.name)
field = self.base_field
name = "%s,%s" % (field.model_name, field.name)
trans = env['ir.translation']._get_source(name, 'help', env.lang)
return trans or self.help
return self.help