~openerp-dev/openobject-server/7.0-opw-586924-dhs

« back to all changes in this revision

Viewing changes to openerp/osv/expression.py

  • Committer: Purnendu Singh (OpenERP)
  • Date: 2013-05-14 12:21:52 UTC
  • mfrom: (4917.1.56 openobject-server)
  • Revision ID: psi@tinyerp.com-20130514122152-53xyolualt7twkl3
[FIX] merge with main server

Show diffs side-by-side

added added

removed removed

Lines of Context:
791
791
                leaf.add_join_context(next_model, working_model._inherits[next_model._name], 'id', working_model._inherits[next_model._name])
792
792
                push(leaf)
793
793
 
794
 
            elif not field and left == 'id' and operator == 'child_of':
 
794
            elif left == 'id' and operator == 'child_of':
795
795
                ids2 = to_ids(right, working_model, context)
796
796
                dom = child_of_domain(left, ids2, working_model)
797
797
                for dom_leaf in reversed(dom):