No good reason to make get_translation_join private

review3241003
This commit is contained in:
Cédric Krier
2014-02-06 22:59:42 +01:00
parent 3acd4fa312
commit 8a95fa6d5b
+3 -3
View File
@@ -266,7 +266,7 @@ class Field(object):
class FieldTranslate(Field):
def __get_translation_join(self, Model, name,
def _get_translation_join(self, Model, name,
translation, model, table):
language = Transaction().language
if Model.__name__ == 'ir.model':
@@ -310,7 +310,7 @@ class FieldTranslate(Field):
translation = Translation.__table__()
model = IrModel.__table__()
name, operator, value = domain
join = self.__get_translation_join(Model, name,
join = self._get_translation_join(Model, name,
translation, model, table)
Operator = SQL_OPERATORS[operator]
column = Coalesce(NullIf(translation.value, ''),
@@ -336,7 +336,7 @@ class FieldTranslate(Field):
if key not in tables:
translation = Translation.__table__()
model = IrModel.__table__()
join = self.__get_translation_join(Model, name,
join = self._get_translation_join(Model, name,
translation, model, table)
tables[key] = {
None: (join.right, join.condition),