small fixes on sale_show_transaction views

This commit is contained in:
Benoît
2025-01-23 15:31:33 +01:00
parent cec64f83d8
commit e155a7b821

View File

@@ -5,9 +5,9 @@
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form" />
<field name="arch" type="xml">
<field name="note" position="after">
<separator string="Transaction" colspan="4"/>
<field name="transaction_ids" nolabel="1" colspan="4">
<xpath expr="//group[@name='note_group']/group/field[@name='note']" position="after">
<separator string="Transaction" colspan="4" attrs="{'invisible': [('transaction_ids', '=', [])]} "/>
<field name="transaction_ids" nolabel="1" colspan="4" attrs="{'invisible': [('transaction_ids', '=', [])]}">
<tree
decoration-danger="state in ('error', 'cancel')"
decoration-success="state == 'done'"
@@ -19,7 +19,7 @@
<field name="state"/>
</tree>
</field>
</field>
</xpath>
</field>
</record>
@@ -28,7 +28,7 @@
<field name="inherit_id" ref="sale.view_order_tree" />
<field name="arch" type="xml">
<field name="state" position="after">
<field name="main_acquirer_id"/>
<field name="main_acquirer_id" optional="hide" />
</field>
</field>
</record>
@@ -38,7 +38,7 @@
<field name="inherit_id" ref="sale.view_quotation_tree" />
<field name="arch" type="xml">
<field name="currency_id" position="after">
<field name="main_acquirer_id"/>
<field name="main_acquirer_id" optional="hide" />
</field>
</field>
</record>