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

« back to all changes in this revision

Viewing changes to msf_custom_settings/view/sale_view.xml

  • Committer: jf
  • Date: 2014-09-05 08:53:44 UTC
  • mfrom: (2206.3.39 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20140905085344-n3iz6igxpmo0yfht
Tags: pilot3.1b7
Pilot 3.1b7

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
                    <xpath expr="/form/notebook/page[@string='Sales Order']/group[2]" position="replace" >
26
26
                    </xpath>
27
27
                    <xpath expr="/form/notebook" position="after" >
 
28
                            <field name="vat_ok" invisible="1" />
28
29
                            <group col="13" colspan="10">
29
30
                                <field name="currency_id" readonly="1"/>
30
 
                                <field name="amount_untaxed" sum="Untaxed amount"/>
31
 
                                <field name="amount_tax"/>
 
31
                                <field name="amount_untaxed" sum="Untaxed amount" attrs="{'invisible': [('vat_ok', '=', False)]}" />
 
32
                                <field name="amount_tax" attrs="{'invisible': [('vat_ok', '=', False)]}"/>
32
33
                                <field name="amount_total"/>
33
34
                                <button name="button_dummy" states="draft" string="Compute" type="object" icon="gtk-execute"/>
34
35
                                <newline/>
35
36
                                <field name="functional_currency_id" readonly="1"/>
36
 
                                <field name="functional_amount_untaxed"/>
37
 
                                <field name="functional_amount_tax"/>
 
37
                                <field name="functional_amount_untaxed" attrs="{'invisible': [('vat_ok', '=', False)]}"/>
 
38
                                <field name="functional_amount_tax" attrs="{'invisible': [('vat_ok', '=', False)]}"/>
38
39
                                <field name="functional_amount_total"/>
39
40
                            </group>
40
41
                            <group col="14" colspan="4">
66
67
                        </group>
67
68
                    </xpath>
68
69
 
 
70
                    <xpath expr="/form//field[@name='order_line']//separator[@string='Taxes']" position="replace" />
 
71
                    <xpath expr="/form//field[@name='order_line']//field[@name='tax_id']" position="replace">
 
72
                        <field name="vat_ok" invisible="1" />
 
73
                        <group colspan="4" col="4" attrs="{'invisible': [('vat_ok', '=', False)]}">
 
74
                            <separator colspan="5" string="Taxes"/>
 
75
                            <field colspan="4" name="tax_id" nolabel="1" domain="[('parent_id','=',False),('type_tax_use','&lt;&gt;','purchase')]"/>
 
76
                        </group>
 
77
                    </xpath>
 
78
 
69
79
                    <xpath expr="/form//field[@name='order_line']" position="attributes">
70
80
                        <attribute name="on_change">order_line_change(order_line)</attribute>
71
81
                    </xpath>