[FIX] expression.parse: fixed indentation error preventing leafs to be correctly replaced in auto_join.

bzr revid: tde@openerp.com-20121128181258-cgmm7wqgv657iptb
This commit is contained in:
Thibault Delavallée 2012-11-28 19:12:58 +01:00
parent 2f16bf4b56
commit 47fda82264
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ class expression(object):
self.joins.append('%s."%s"=%s."%s"' % (alias, 'id', previous_alias, field_path[0]))
elif field._type == 'one2many':
self.joins.append('%s."%s"=%s."%s"' % (alias, field._fields_id, previous_alias, 'id'))
self.exp[i] = (alias + '.' + field_path[1], self.exp[i][1], self.exp[i][2])
self.exp[i] = (alias + '.' + field_path[1], self.exp[i][1], self.exp[i][2])
# udpate working variables
field_path = field_path[1].split('.', 1)