[VIEW] -taxes references in sale order
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 8 Apr 2016 12:07:16 +0000 (14:07 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Fri, 8 Apr 2016 12:07:16 +0000 (14:07 +0200)
__openerp__.py
view/sale.xml [new file with mode: 0644]

index 8fe44a3..148fd3e 100644 (file)
@@ -48,6 +48,7 @@ This module is to configure add french spepcifitities to modules related to a bi
         'view/bikecoop.xml',
         'view/point_of_sale.xml',
         'view/profile_association.xml',
         'view/bikecoop.xml',
         'view/point_of_sale.xml',
         'view/profile_association.xml',
+        'view/sale.xml',
     ],
     'installable': True,
     'auto_install': False,
     ],
     'installable': True,
     'auto_install': False,
diff --git a/view/sale.xml b/view/sale.xml
new file mode 100644 (file)
index 0000000..8f9f35c
--- /dev/null
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+        <record id="view_order_form" model="ir.ui.view">
+            <field name="name">sale.order.form</field>
+            <field name="model">sale.order</field>
+            <field name="inherit_id" ref="sale.view_order_form"/>
+            <field name="arch" type="xml">
+                <xpath expr="//tree/field[@name='tax_id']" position="attributes">
+                    <attribute name="invisible">1</attribute>
+                </xpath>
+                <field name="amount_untaxed" position="replace"/>
+                <field name="amount_tax" position="replace"/>
+            </field>
+        </record>
+    </data>
+</openerp>