[IMP] website_sale: do not show transaction on sale order
authorMartin Trigaux <mat@openerp.com>
Tue, 16 Sep 2014 15:23:44 +0000 (17:23 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 17 Sep 2014 10:59:06 +0000 (12:59 +0200)
This object is quite technical and has not purpose to be displayed on a sale order.

addons/website_sale/views/sale_order.xml

index ad90e1e..2568ec2 100644 (file)
@@ -8,8 +8,8 @@
             <field name="inherit_id" ref="sale.view_order_form"/>
             <field name="arch" type="xml">
                 <xpath expr="//field[@name='amount_total']" position="after">
-                    <field name="payment_acquirer_id" readonly="1" attrs="{'invisible': [('payment_acquirer_id', '=', False)]}"/>
-                    <field name="payment_tx_id" readonly="1" attrs="{'invisible': [('payment_acquirer_id', '=', False)]}"/>
+                    <field name="payment_acquirer_id" readonly="1" attrs="{'invisible': [('payment_acquirer_id', '=', False)]}" options='{"no_open":True}'/>
+                    <field name="payment_tx_id" readonly="1" attrs="{'invisible': [('payment_acquirer_id', '=', False)]}" groups="base.group_no_one"/>
                 </xpath>
             </field>
         </record>