Open ThinhPhan opened 3 weeks ago
Odoo XPath Guide https://github.com/salvorapi/odoo-xpath-tutorial
https://odoo-development.readthedocs.io/en/latest/dev/xml/xpath.html To test xpath
#Odoo tip - XPath playground:
$ sudo apt-get install libxml-xpath-perl
$ xpath -e "//record[@id=',,,']" -e "//field[@name='...']" *.xml
Goal
Solution
many2one_avatar
with class mixinavatar.mixin
to achieve first goalmany2one_avatar
widgetIssue
The arrow not horizontal align with avatar & name. They are on 2 lines as the below illustration
Change style
display: block
->display: inline-block
make the trick. (Bang the head to the wall to find workaround fix like change xpath to div, change position toinside
but doesn't work).References
Mixin Classes