|
@ -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 --> |
|
|