[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:
parent
e0ea72388f
commit
3385300cb7
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue