[IMP] website: sale_order: display acquirer only when set. The purpose is to

avoid maanging it from the sale order view; the website will set the acquirer
for ecommerce related orders. This way the acquirer and tx will be displayed
on the sale order linked to ecommerce sales, and not on other orders.
This commit is contained in:
Thibault Delavallée 2014-05-13 11:01:18 +02:00
parent e0ea72388f
commit 3385300cb7
1 changed files with 2 additions and 2 deletions

View 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"/>
<field name="payment_tx_id"/>
<field name="payment_acquirer_id" attrs="{'invisible': [('payment_acquirer_id', '=', False)]}"/>
<field name="payment_tx_id" attrs="{'invisible': [('payment_acquirer_id', '=', False)]}"/>
</xpath>
</field>
</record>