The type fields of actions already defaults to the model name in the base model definition. Therefore, specifying `ir.actions.server`, `ir.actions.act_window` & so on as type is useless (and adds noise since it's the same as the action model). closes odoo/odoo#114539 Related: odoo/enterprise#37855 Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
12 lines
553 B
XML
12 lines
553 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- action used by the mail plugins in order to redirect the user to the newly created task in edit mode-->
|
|
<record id="project_task_action_form_edit" model="ir.actions.act_window">
|
|
<field name="name">Task: redirect to form in edit mode</field>
|
|
<field name="res_model">project.task</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="project.view_task_form2"/>
|
|
<field name="context">{'form_view_initial_mode': 'edit'}</field>
|
|
</record>
|
|
</odoo>
|