summaryrefslogtreecommitdiff
path: root/addons/account/wizard/account_tour_upload_bill.xml
blob: a3ceb8dd2eed39e46dc855570f6c08d14f1c1eb5 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="account_tour_upload_bill" model="ir.ui.view">
            <field name="name">account.tour.upload.bill</field>
            <field name="model">account.tour.upload.bill</field>
            <field name="arch" type="xml">
                <form>
                    <sheet>
                        <h2>With Odoo, you won't have to records bills manually</h2>
                        <p>We process bills automatically so that you only have to validate them. Choose how you want to test our artificial intelligence engine:</p>
                        <group>
                            <group>
                                <field name="selection" widget="radio" nolabel="1"/>
                            </group>
                            <group attrs="{'invisible': [('selection', '!=', 'sample')]}">
                                <field name="sample_bill_preview" widget="pdf_viewer" nolabel="1"/>
                            </group>
                            <group attrs="{'invisible': [('selection', '!=', 'upload')]}">
                                <field name="attachment_ids" widget="many2many_binary" string="Attach a file" nolabel="1" colspan="2"/>
                            </group>
                        </group>
                    </sheet>
                    <footer>
                        <button string="Continue" type="object" name="apply" class="btn-primary"/>
                        <button string="Discard" class="btn-secondary" special="cancel" />
                    </footer>
               </form>
            </field>
        </record>

        <record id="account_tour_upload_bill_email_confirm" model="ir.ui.view">
            <field name="name">account.tour.upload.bill.email.confirm</field>
            <field name="model">account.tour.upload.bill.email.confirm</field>
            <field name="arch" type="xml">
                <form>
                    <sheet>
                        <p>Send your email to <field name="email_alias" class="oe_inline"/> with a pdf of an invoice as attachment.</p>
                        <p>Once done, press continue.</p>
                    </sheet>
                    <footer>
                        <button string="Continue" type="object" name="apply" class="btn-primary"/>
                        <button string="Discard" class="btn-secondary" special="cancel" />
                    </footer>
               </form>
            </field>
        </record>
    </data>
</odoo>