Add js_class attribute to an existing view.
I created an extension of the form view that adds a button to the toolbar similar to the HelloworldEvolution view from this video here:
Github repo for the video:
The extension just adds a button to the toolbar that doesn't do anything yet. Now I'd like to use this extension in an existing view, like the stock.picking form view from the Inventory app.
I tried inheriting the view and adding the js_class attribute to it using:
<xpath expr="//form" position="attributes"> <attribute name="js_class">my_formview_extension</attribute> </xpath>
But nothing gets added to the form. No error is thrown either. Anyone can help?