Added comment line
bzr revid: fp@tinyerp.com-c2a7376283f63d02b0c228650ed92e51f60a3522
This commit is contained in:
parent
58635d041d
commit
82d970f8ef
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue