Odoo Shortcuts provides tools for working with XPath in Odoo XML files.
Gets the XPath path of the current XML element.
Command: Odoo Shortcuts: Get XPath

Usage:
Example:
<record id="view_form" model="ir.ui.view">
<field name="arch" type="xml">
<form>
<group> <!-- ← Cursor here -->
<field name="name"/>
</group>
</form>
</field>
</record>
Result:
//form/group
Evaluates an XPath expression in the current document.
Command: Odoo Shortcuts: Evaluate XPath
Features:
<!-- Copy XPath from element to extend -->
<xpath expr="//field[@name='name']" position="after">
<field name="new_field"/>
</xpath>
When an inherited view doesn’t work:
<!-- Select specific field within a group -->
//group[@string='General']/field[@name='name']
<!-- Select by multiple attributes -->
//field[@name='partner_id' and @widget='many2one']
//* to search by attributes regardless of tagThe command validates syntax and shows specific errors if the expression is invalid.
Next: XML Formatter