35 lines
1.5 KiB
XML
35 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_sh_survey_attachment_cleanup_wizard_form" model="ir.ui.view">
|
|
<field name="name">sh.survey.attachment.cleanup.wizard.form</field>
|
|
<field name="model">sh.survey.attachment.cleanup.wizard</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Survey Attachment Cleanup">
|
|
<group>
|
|
<field name="website_id" placeholder="Leave empty for all websites"/>
|
|
<field name="limit"/>
|
|
<field name="attachment_count" readonly="1"/>
|
|
</group>
|
|
<footer>
|
|
<button string="Delete Attachments" name="action_delete_attachments" type="object" class="btn-danger" confirm="Are you sure you want to delete these attachments?"/>
|
|
<button string="Cancel" class="btn-secondary" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_sh_survey_attachment_cleanup_wizard" model="ir.actions.act_window">
|
|
<field name="name">Survey Attachment Cleanup</field>
|
|
<field name="res_model">sh.survey.attachment.cleanup.wizard</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
<menuitem id="menu_sh_survey_attachment_cleanup"
|
|
name="Attachment Cleanup"
|
|
parent="survey.menu_surveys"
|
|
action="action_sh_survey_attachment_cleanup_wizard"
|
|
sequence="100"/>
|
|
|
|
</odoo>
|