Browse Source

[FIX] survey_template action.server

12.0
Rémi FRANÇOIS 4 years ago
parent
commit
5cceda4f25
  1. 10
      survey_template/views/survey_survey.xml

10
survey_template/views/survey_survey.xml

@ -155,15 +155,7 @@
<field name="binding_model_id" ref="survey.model_survey_survey"/> <field name="binding_model_id" ref="survey.model_survey_survey"/>
<field name="binding_type">action_form_only</field> <field name="binding_type">action_form_only</field>
<field name="state">code</field> <field name="state">code</field>
<field name="code">
new_template = record.create_template_from_survey()
action = {
'type': 'ir.actions.act_window',
'res_model': model._name,
'res_id': new_template.id,
'views': [(False, 'form')],
}
</field>
<field name="code">action = record.create_template_from_survey()</field>
</record> </record>
<!-- survey config menus rearrange --> <!-- survey config menus rearrange -->

Loading…
Cancel
Save