December 2018
Beginner to intermediate
404 pages
10h 14m
English
In some cases, we may not have an attribute with a unique value to use as the XML node selector. This can happen when the element to select does not have a name attribute, as is the case for the <group>, <notebook>, or <page> View elements. Another frequent case is when there are several elements with the same name attribute, as in the case of Kanban QWeb Views, where the same field can be included more than once in the same XML template.
For these cases, we need a more sophisticated way to locate the XML element to extend. Being XML, the natural way to locate elements in XML is to use XPath expressions.
For example, taking the Book form View defined in the previous chapter, an XPath expression to locate ...
Read now
Unlock full access