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>
27 lines
702 B
Python
27 lines
702 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
# Mapping of transaction states to Buckaroo status codes.
|
|
# See https://www.pronamic.nl/wp-content/uploads/2013/04/BPE-3.0-Gateway-HTML.1.02.pdf for the
|
|
# exhaustive list of status codes.
|
|
STATUS_CODES_MAPPING = {
|
|
'pending': (790, 791, 792, 793),
|
|
'done': (190,),
|
|
'cancel': (890, 891),
|
|
'refused': (690,),
|
|
'error': (490, 491, 492,),
|
|
}
|
|
|
|
# The currencies supported by Buckaroo, in ISO 4217 format.
|
|
# See https://support.buckaroo.eu/frequently-asked-questions
|
|
# Last seen online: 7 November 2022.
|
|
SUPPORTED_CURRENCIES = [
|
|
'EUR',
|
|
'GBP',
|
|
'PLN',
|
|
'DKK',
|
|
'NOK',
|
|
'SEK',
|
|
'CHF',
|
|
'USD',
|
|
]
|