Skip to content
Snippets Groups Projects
Commit e8dec0fd authored by Nicolas Martinelli's avatar Nicolas Martinelli
Browse files

[FIX] payment: do not create token in backend

Tokens are not meant to be generated from the backend, so we forbid it.

opw-746545
parent 89a99407
Branches
Tags
No related merge requests found
......@@ -19,8 +19,9 @@
<field name="arch" type="xml">
<field name="payment_method_id" position="after">
<field name="payment_method_code" invisible="1"/>
<field name="payment_token_id" attrs="{'invisible': [('payment_method_code', '!=', 'electronic')],
'required': [('payment_method_code', '=', 'electronic')]}"/>
<field name="payment_token_id" options="{'no_create': True}"
attrs="{'invisible': [('payment_method_code', '!=', 'electronic')],
'required': [('payment_method_code', '=', 'electronic')]}"/>
</field>
</field>
</record>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment