I would like to add a server action to my module but I'm having trouble to find the correct syntax of object_write to do that:
<record id="rest_env" model="ir.actions.server">
<field name="sequence" eval="5"/>
<field name="state">code</field>
<field name="type">ir.actions.server</field>
<field name="model_id" ref="rest.order"/>
<field name="code">Write on my fields here</field>
<field name="condition">True</field>
<field name="name">Rest_env</field>
</record>
In code I would like to update some fields, that's easy from the GUI, but I didn't understand how to do that from xml.
Odoo documentation doesn't offers examples for that...