summaryrefslogtreecommitdiff
path: root/addons/snailmail/wizard/snailmail_letter_format_error_views.xml
blob: 8277cf95dc3d5cbcf213884db8fb2fe7a350d533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="snailmail_letter_format_error" model="ir.ui.view">
        <field name="name">snailmail.letter.format.error.form</field>
        <field name="model">snailmail.letter.format.error</field>
        <field name="groups_id" eval="[(4,ref('base.group_user'))]"/>
        <field name="arch" type="xml">
            <form string="Cancel notification in failure">
                <p>Our service cannot read your letter due to its format.<br/>
                Please modify the format of the template or update your settings
                to automatically add a blank cover page to all letters.</p>
                <field name="snailmail_cover"/>
                <label string="Add a Cover Page" class="o_light_label" for="snailmail_cover"/>
                <footer>  
                    <button string="Update Config and Re-send" name="update_resend_action" type="object" class="btn-primary" />
                    <button string="Cancel Letter" name="cancel_letter_action" type="object" class="btn-primary" />
                    <button string="Close" class="btn-secondary" special="cancel" />
                </footer>
            </form>
        </field>
    </record>

    <record id="snailmail_letter_format_error_action" model="ir.actions.act_window">
        <field name="name">Format Error</field>
        <field name="res_model">snailmail.letter.format.error</field>
        <field name="type">ir.actions.act_window</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>
</odoo>