On the server side, we can simply defined an ir.actions.client. In below code we will use .xml file.
<record id="action_home_page" model="ir.actions.client">
<field name="tag">petstore.homepage</field>
</record>
For menu opening the action:
<menuitem id="home_page_petstore_menu" parent="petstore_menu" name="Home Page" action="action_home_page"></menuitem>
Note- a client action handler can also be a regular function, in which case it will be called and its result will be interpreted as the next action to execute.
0 Comment(s)