Skip to content

Commit

Permalink
[IMP] account_payment_order: make reference_type modifiable on posted…
Browse files Browse the repository at this point in the history
… invoice

The Odoo payment_reference field is modifiable, so the reference type
should be modifiable too.
  • Loading branch information
sbidoul committed Aug 14, 2024
1 parent 4034b4b commit a175c19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions account_payment_order/views/account_invoice_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@
<field name="payment_reference" position="before">
<field
name="reference_type"
attrs="{'readonly':[('state','!=','draft')],
'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund'))],
attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund'))],
'required': [('move_type', 'in', ('out_invoice', 'out_refund'))]}"
/>
</field>
Expand Down

0 comments on commit a175c19

Please sign in to comment.