[FIX] payment_custom: hide payment methods buttons on custom providers
Custom-flow payment providers should not allow assigning a different payment method than the one that was set. Part-of: odoo/odoo#148865
This commit is contained in:
@@ -9,6 +9,12 @@
|
||||
<field name="code" invisible="1" position="after">
|
||||
<field name="custom_mode" invisible="1"/>
|
||||
</field>
|
||||
<field name="payment_method_ids" position="attributes">
|
||||
<attribute name="invisible">state == 'disabled' or code == 'custom'</attribute>
|
||||
</field>
|
||||
<a name="action_view_payment_methods" position="attributes">
|
||||
<attribute name="invisible">state == 'disabled' or code == 'custom'</attribute>
|
||||
</a>
|
||||
<field name="capture_manually" position="after">
|
||||
<field name="qr_code" invisible="code != 'custom'" />
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user