Skip to content

Commit

Permalink
Merge PR #1384 into 17.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 3cac380 + e355928 commit 6bc1681
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 @@ -50,13 +50,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"
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"
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 6bc1681

Please sign in to comment.