Skip to content
Snippets Groups Projects
Commit f167c3d0 authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[FIX] payment_ingenico: fix payment_token creation

Now, we can again creates ingenico token on production environment.
Commit https://github.com/odoo/odoo/commit/f0e059e6#diff-0c487d0R558

 replaced aquirer.id by self.acquire_id.id.
It is wrong since env['payment.token'].create() will call the function with self == payment.token().
self.acquirer_id == False --> self.acquirer_id.state != 'enabled' --> request done in test mode each time.

closes odoo/odoo#44126

X-original-commit: 68028b90
Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
parent 7502c200
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment