mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] account_payment_order: Shorten the vertical used space
Having 2 lines for the reference (one for the type and the other for the reference itself) steals vertical space to the really important things in the invoice: the lines, so we compact them into one line for better ergonomics.
This commit is contained in:
@@ -58,13 +58,21 @@
|
||||
<field name="payment_mode_id" position="after">
|
||||
<field name="payment_order_ok" invisible="1" />
|
||||
</field>
|
||||
<!-- First we place the rest of the elements for the new reference distribution -->
|
||||
<field name="payment_reference" position="before">
|
||||
<field
|
||||
name="reference_type"
|
||||
attrs="{'readonly':[('state','!=','draft')],
|
||||
'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund'))],
|
||||
'required': [('move_type', 'in', ('out_invoice', 'out_refund'))]}"
|
||||
/>
|
||||
<label for="payment_reference" />
|
||||
<div name="payment_reference_div" class="d-flex">
|
||||
<field
|
||||
name="reference_type"
|
||||
attrs="{'readonly':[('state','!=','draft')],
|
||||
'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund'))],
|
||||
'required': [('move_type', 'in', ('out_invoice', 'out_refund'))]}"
|
||||
/>
|
||||
</div>
|
||||
</field>
|
||||
<!-- Then we move the std field, as this can only be on a first level -->
|
||||
<field name="reference_type" position="after">
|
||||
<field name="payment_reference" position="move" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user