Skip to content

Commit

Permalink
Merge PR #1383 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Dec 5, 2024
2 parents cced0c9 + 3728602 commit d1df384
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions account_payment_order/views/account_invoice_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit d1df384

Please sign in to comment.