~mikel-martin/+junk/openerp-web-rb

« back to all changes in this revision

Viewing changes to openerp/controllers/viewed.py

  • Committer: mikel
  • Date: 2010-11-10 01:43:48 UTC
  • mfrom: (2855.1.18 web)
  • Revision ID: mikel@pcl2-20101110014348-fkthcwe0efu5zr04
Cambios no conocidos

Show diffs side-by-side

added added

removed removed

Lines of Context:
273
273
            def _find(node, node2):
274
274
                # Check if xpath query or normal inherit (with field matching)
275
275
                if node2.nodeType==node2.ELEMENT_NODE and node2.localName=='xpath':
276
 
                    res = tools.xml_locate(node2.getAttribute('expr'), node)
 
276
                    res = tools.get_xpath(node, node2.getAttribute('expr'))
277
277
                    return res and res[0]
278
278
                else:
279
279
                    if node.nodeType==node.ELEMENT_NODE and node.localName==node2.localName: