[CLN] *: useless type info for actions
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>
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
<!-- Called by the plugin to open a lead in edit mode -->
|
||||
<record id="crm_lead_action_form_edit" model="ir.actions.act_window">
|
||||
<field name="name">Lead: redirect form in edit mode</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">crm.lead</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="crm.crm_lead_view_form"/>
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
<!--deprecated as of saas-14.3-->
|
||||
<record id="lead_creation_prefilled_action" model="ir.actions.server">
|
||||
<field name="name">Redirection to the lead creation form with prefilled info</field>
|
||||
<field name="type">ir.actions.server</field>
|
||||
<field name="model_id" ref="model_crm_lead"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">action = model._form_view_auto_fill()</field>
|
||||
|
||||
Reference in New Issue
Block a user