You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
1.1 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="0">
<!--
Server action definition for generating the Survey XLSX Report.
- This action is associated with the `survey.survey` model.
- It creates a "Survey XLSX Report" action that can be triggered from within the survey model.
- The action is implemented using a Python code execution (`state=code`).
- When triggered, it calls the `action_print_xlsx_report` method on the selected records.
- The `noupdate="0"` attribute ensures that this record is not protected from updates during module upgrades.
-->
<record id="survey_survey_action" model="ir.actions.server">
<field name="name">Survey XLSX Report</field>
<field name="model_id" ref="survey.model_survey_survey"/>
<field name="binding_model_id" ref="survey.model_survey_survey"/>
<field name="state">code</field>
<field name="code">
action = records.action_print_xlsx_report()
</field>
</record>
</data>
</odoo>