How to target a web client level HTML element through my module using xpath or any other possible method? (Odoo 11)
At the beginning i would like to mention that i am a beginner in Odoo development so please try to be simple as much as you can.
To make my question easy i have uploaded an image of what i want and here is the image:
I want to know how can i target a web client main element like the body element or the sidebar element with xpath or any other possible method to add/change attributes?
To be more specific, i want to know how to add attribute "onclick='method()'" to one of the side menu links and add script at the end of the page to define that method.
Also please if you have any links to lessons or tutorials that can help me with this topic, it is very appreciated if you leave its link :)