Before this commit, the lists of supported currencies by payment provider were hard-coded in the Python scripts, which made them unavailable to the users. With this commit, the implemented initial lists of supported currencies are displayed on the form view and are editable, because Odoo lists may not be up-to-date. Empty lists do not trigger any filtering on the payment providers to access payment methods. For Authorize.net and Asiapay payment providers, the specific `(authorize,asiapay)_currency_id` are removed and the generic payment provider field `available_currency_ids` is restricted to a single-item list when one of those providers is enabled. task-2926016 closes odoo/odoo#101018 Related: odoo/enterprise#34158 Related: odoo/documentation#2788 Related: odoo/upgrade#4069 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
15 lines
403 B
Python
15 lines
403 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
# Supported currencies of PayuLatam, in ISO 4217 currency codes.
|
|
# https://developers.payulatam.com/latam/en/docs/getting-started/response-codes-and-variables.html#accepted-currencies.
|
|
# Last seen online: 22 September 2022.
|
|
SUPPORTED_CURRENCIES = [
|
|
'ARS',
|
|
'BRL',
|
|
'CLP',
|
|
'COP',
|
|
'MXN',
|
|
'PEN',
|
|
'USD'
|
|
]
|