Added comment line

bzr revid: fp@tinyerp.com-c2a7376283f63d02b0c228650ed92e51f60a3522
This commit is contained in:
Fabien Pinckaers 2007-12-27 08:13:33 +00:00
parent 58635d041d
commit 82d970f8ef
1 changed files with 1 additions and 0 deletions

View File

@ -1488,6 +1488,7 @@ class orm(object):
context={}
def _inherit_apply(src, inherit):
def _find(node, node2):
# Check if xpath query or normal inherit (with field matching)
if node2.nodeType==node2.ELEMENT_NODE and node2.localName=='xpath':
res = xpath.Evaluate(node2.getAttribute('expr'), node)
return res and res[0]