~unifield-team/unifield-wm/us-826

259 by jf
UF-427: Invoice: wiz to ask for date when invoice is validated
1
<?xml version="1.0"?>
2
<openerp>
3
    <data>
4
5
    <!-- Register creation Form -->
6
        <record model="ir.ui.view" id="wizard_invoice_date_form">
7
            <field name='name'>wizard.invoice.date.form</field>
8
            <field name='model'>wizard.invoice.date</field>
9
            <field name='type'>form</field>
10
            <field name='arch' type='xml'>
367.4.1 by jf
UF-427 : invoice wizard amount computed
11
                <form string="Missing information">
12
                    <field name="state" invisible="1"/>
13
                    <group colspan="4" attrs="{'invisible': [('state','=','amount')]}">
14
                        <separator colspan="4" string="Please indicate an invoice date before approving the invoice:" />
1016.4.6 by Matthieu Dietrich
UF-XXX: [FIX] other way around for document date/posting date
15
                        <field name="document_date" attrs="{'required': [('state', '!=', 'amount')]}"/>
367.4.1 by jf
UF-427 : invoice wizard amount computed
16
                        <field name="date" attrs="{'required': [('state','!=','amount')]}"/>
17
                        <label string=" " colspan="4" />
18
                        <label string=" " colspan="4" />
19
                    </group>
20
                    <group colspan="4" attrs="{'invisible': [('state','=','date')]}">
21
                        <separator colspan="4" string="Please verify the price of the invoice ! The real total does not match the computed total:" />
22
                        <field name="check_total" attrs="{'required': [('state','!=','date')]}"/>
23
                        <field name="amount_total" />
24
                        <label string=" " colspan="4" />
25
                        <label string=" " colspan="4" />
26
                    </group>
259 by jf
UF-427: Invoice: wiz to ask for date when invoice is validated
27
                    <group colspan="4">
28
                        <button icon="gtk-cancel" special="cancel" string="Cancel"/>
29
                        <button name="validate" type="object" string="Validate" icon="gtk-ok" />
30
                    </group>
31
                </form>
32
            </field>
33
        </record>
34
35
    </data>
36
</openerp>