I created an extension of the form view that adds a button to the toolbar similar to the HelloworldEvolution view from this video here:
https://www.youtube.com/watch?v=SIoljYJhTqk
Github repo for the video:
https://github.com/Polymorphe57/hello_world_view_code
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?
Thanks!