Skip to content

Commit 2585750

Browse files
Merge branch 'support/3.x/hotfix/3.1.1' into support/3.x/master
2 parents 97fbe88 + de5036e commit 2585750

6 files changed

Lines changed: 33 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
3.1.1, 2025-12-02
2+
=============
3+
- Bug fix: Fix authorization issue while displaying embedded payment fields.
4+
- Update list of supported payment means.
5+
- Update list of supported currencies.
6+
17
3.1.0, 2024-12-04
28
=============
39
- [smartform] Smartform integration.

COPYING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2017-2024 Lyra Network.
1+
Copyright © 2017-2025 Lyra Network.
22

33
Lyra Collect plugin for Odoo is free software: you can redistribute it and/or modify
44
it under the terms of the GNU Affero General Public License as

payment_lyra/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
{
1111
'name': 'Lyra Collect Payment Provider',
12-
'version': '3.1.0',
12+
'version': '3.1.1',
1313
'summary': 'Accept payments with Lyra Collect secure payment gateway.',
1414
'category': 'Accounting/Payment Providers',
1515
'author': 'Lyra Network',

payment_lyra/helpers/constants.py

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
'GATEWAY_CODE': 'Lyra',
2323
'GATEWAY_NAME': 'Lyra Collect',
2424
'BACKOFFICE_NAME': 'Lyra Expert',
25-
'SUPPORT_EMAIL': 'support-ecommerce@lyra-collect.com',
25+
'SUPPORT_EMAIL': 'https://support.lyra.com/hc/fr/requests/new',
2626
'GATEWAY_URL': 'https://secure.lyra.com/vads-payment/',
2727
'SITE_ID': '12345678',
2828
'KEY_TEST': '1111111111111111',
@@ -31,7 +31,7 @@
3131
'SIGN_ALGO': 'SHA-256',
3232
'LANGUAGE': 'en',
3333
'GATEWAY_VERSION': 'V2',
34-
'PLUGIN_VERSION': '3.1.0',
34+
'PLUGIN_VERSION': '3.1.1',
3535
'CMS_IDENTIFIER': 'Odoo_16',
3636
'REST_URL': 'https://api.lyra.com/api-payment/',
3737
'STATIC_URL': 'https://static.lyra.com/static/'
@@ -103,6 +103,17 @@
103103
'CARNET': u'Carnet',
104104
'CA_DO_CARTE': u'CA DO Carte',
105105
'CHQ_DEJ': u'Chèque Déjeuner',
106+
'COFIDIS_3X_BE': u'Cofidis en 3 fois',
107+
'COFIDIS_3X_FR': u'Cofidis en 3 fois',
108+
'COFIDIS_4X_ES': u'Cofidis en 4 vencimientos',
109+
'COFIDIS_4X_FR': u'Cofidis en 4 fois',
110+
'COFIDIS_DFPAY_FR': u'Cofidis Pay Later',
111+
'COFIDIS_LOAN_BE': u'Cofidis en 6-12-18 fois',
112+
'COFIDIS_LOAN_CB': u'Cofidis en 5-12 fois',
113+
'COFIDIS_LOAN_ES': u'Cofidis en 6-12-24 vencimientos',
114+
'COFIDIS_LOAN_FR': u'Amortissable',
115+
'COFIDIS_LOAN_IT': u'Cofidis Pagodil',
116+
'COFIDIS_PAY_FR': u'Cofidis Pay',
106117
'COM_BARRY_CDX': u'Carte Cadeau Comtesse du Barry',
107118
'COM_BARRY_CDX_SB': u'Carte Cadeau Comtesse du Barry (sandbox)',
108119
'CONECS': u'Conecs',
@@ -123,6 +134,10 @@
123134
'EDENRED_TC': u'Ticket Compliments',
124135
'EDENRED_TR': u'Ticket Restaurant',
125136
'ELO': u'Elo',
137+
'FLOA_10X': u'Floa en 10 fois',
138+
'FLOA_3X': u'Floa en 3 fois',
139+
'FLOA_4X': u'Floa en 4 fois',
140+
'FLOA_PAYLATER': u'Floa Pay Later',
126141
'FRANFINANCE_3X': u'Paiement en 3 fois',
127142
'FRANFINANCE_4X': u'Paiement en 4 fois',
128143
'FULLCB3X': u'Paiement en 3 fois CB',
@@ -175,12 +190,13 @@
175190
'PAYPAL_SB': u'PayPal Sandbox',
176191
'PICWIC': u'Carte Picwic',
177192
'PICWIC_SB': u'Carte Picwic (sandbox)',
193+
'PIX': u'Pix',
178194
'POSTFINANCE': u'PostFinance Card',
179195
'POSTFINANCE_EFIN': u'PostFinance E-Finance',
180-
'PRESTO': u'Presto',
181196
'PRZELEWY24': u'Przelewy24',
182197
'RABBIT_LINE_PAY': u'Rabbit Line Pay',
183198
'S-MONEY': u'S-money',
199+
'SAMSUNG_PAY': u'Samsung Pay',
184200
'SCT': u'Virement SEPA',
185201
'SDD': u'SEPA direct debit',
186202
'SODEXO': u'Pass Restaurant',
@@ -189,13 +205,16 @@
189205
'TNG': u'Touch \'n Go eWallet',
190206
'TOSS': u'Toss',
191207
'TRUEMONEY': u'TrueMoney Wallet',
208+
'TWINT': u'Twint',
192209
'UPI': u'UPI',
193210
'VILLAVERDE': u'Carte Cadeau VillaVerde',
194211
'VILLAVERDE_SB': u'Carte Cadeau VillaVerde (sandbox)',
195212
'WECHAT': u'WeChat Pay',
213+
'WECHAT_PAY': u'WeChat Pay',
196214
}
197215

198216
LYRA_CURRENCIES = [
217+
['AUD', '036', 2],
199218
['CAD', '124', 2],
200219
['CHF', '756', 2],
201220
['DKK', '208', 2],

payment_lyra/models/payment_provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _get_payment_data_entry_mode(self):
7070
return [(c, _(l)) for c, l in payment_data_entry_mode.items()]
7171

7272
def _get_default_entry_mode(self):
73-
module_upgrade = request.env['ir.module.module'].search([('state', '=', 'to upgrade'), ('name', '=', 'payment_lyra')])
73+
module_upgrade = self.env['ir.module.module'].search([('state', '=', 'to upgrade'), ('name', '=', 'payment_lyra')])
7474
if module_upgrade or (constants.LYRA_PLUGIN_FEATURES.get('smartform') == False):
7575
return ("redirect")
7676

@@ -147,7 +147,7 @@ def _get_compatible_providers(self, *args, currency_id=None, **kwargs):
147147
@api.model
148148
def multi_add(self, filename, noupdate):
149149
if constants.LYRA_PLUGIN_FEATURES.get('multi') == True:
150-
module_upgrade = request.env['ir.module.module'].search([('state', '=', 'to upgrade'), ('name', '=', 'payment_lyra')])
150+
module_upgrade = self.env['ir.module.module'].search([('state', '=', 'to upgrade'), ('name', '=', 'payment_lyra')])
151151
file = path.join(path.dirname(path.dirname(path.abspath(__file__)))) + filename
152152
mode = 'update' if module_upgrade else 'init'
153153
convert_xml_import(self._cr, 'payment_lyra', file, None, mode, noupdate)

payment_lyra/views/payment_lyra_templates.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</template>
7171

7272
<template id="lyra_inline_smartform">
73-
<t t-set="payment_provider_model" t-value="request.env['payment.provider'].search([('code', '=', 'lyra')])[0]" />
73+
<t t-set="payment_provider_model" t-value="request.env['payment.provider'].sudo().search([('code', '=', 'lyra')])[0]" />
7474
<head>
7575
<script t-att-src="payment_provider_model._lyra_get_javascript_server_url()"
7676
t-att-kr-public-key="payment_provider_model._lyra_get_rest_public_key()"

0 commit comments

Comments
 (0)