How do I write server action with new api?
I am trying to change an existing server action to new api using the code as follows
<record id="change_article" model="ir.actions.server">
<field name="name">Change Article</field>
<field name="model_id" ref="model_article"/>
But this does not work. It was working earlier when i was passing cr, uid, context etc to self.change_article(). Shouldnt these be available now from env object or am i still required to pass these from the view