mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-21 21:32:00 +02:00
19.0 vanilla
This commit is contained in:
parent
d1963a3c3a
commit
2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions
|
|
@ -1,6 +1,265 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
# According to https://en.wikipedia.org/wiki/ISO_4217#Minor_unit_fractions
|
||||
from odoo.tools.translate import LazyTranslate
|
||||
|
||||
|
||||
_lt = LazyTranslate(__name__, default_lang='en_US')
|
||||
|
||||
# The keys that are sensitive and should not be logged.
|
||||
SENSITIVE_KEYS = set()
|
||||
|
||||
# Mapping of ISO 3166-1 country codes in alpha-2 format to the numeric format.
|
||||
COUNTRY_NUMERIC_CODES = {
|
||||
'AF': '004',
|
||||
'AL': '008',
|
||||
'DZ': '012',
|
||||
'AS': '016',
|
||||
'AD': '020',
|
||||
'AO': '024',
|
||||
'AG': '028',
|
||||
'AZ': '031',
|
||||
'AR': '032',
|
||||
'AU': '036',
|
||||
'AT': '040',
|
||||
'BS': '044',
|
||||
'BH': '048',
|
||||
'BD': '050',
|
||||
'AM': '051',
|
||||
'BB': '052',
|
||||
'BE': '056',
|
||||
'BM': '060',
|
||||
'BT': '064',
|
||||
'BO': '068',
|
||||
'BA': '070',
|
||||
'BW': '072',
|
||||
'BV': '074',
|
||||
'BR': '076',
|
||||
'BZ': '084',
|
||||
'IO': '086',
|
||||
'SB': '090',
|
||||
'VG': '092',
|
||||
'BN': '096',
|
||||
'BG': '100',
|
||||
'MM': '104',
|
||||
'BI': '108',
|
||||
'BY': '112',
|
||||
'KH': '116',
|
||||
'CM': '120',
|
||||
'CA': '124',
|
||||
'CV': '132',
|
||||
'KY': '136',
|
||||
'CF': '140',
|
||||
'LK': '144',
|
||||
'TD': '148',
|
||||
'CL': '152',
|
||||
'CN': '156',
|
||||
'TW': '158',
|
||||
'CX': '162',
|
||||
'CC': '166',
|
||||
'CO': '170',
|
||||
'KM': '174',
|
||||
'YT': '175',
|
||||
'CG': '178',
|
||||
'CD': '180',
|
||||
'CK': '184',
|
||||
'CR': '188',
|
||||
'HR': '191',
|
||||
'CU': '192',
|
||||
'CY': '196',
|
||||
'CZ': '203',
|
||||
'DK': '208',
|
||||
'DM': '212',
|
||||
'DO': '214',
|
||||
'EC': '218',
|
||||
'SV': '222',
|
||||
'GQ': '226',
|
||||
'ET': '231',
|
||||
'ER': '232',
|
||||
'EE': '233',
|
||||
'FO': '234',
|
||||
'FK': '238',
|
||||
'GS': '239',
|
||||
'FJ': '242',
|
||||
'FI': '246',
|
||||
'AX': '248',
|
||||
'FR': '250',
|
||||
'GF': '254',
|
||||
'PF': '258',
|
||||
'TF': '260',
|
||||
'DJ': '262',
|
||||
'GA': '266',
|
||||
'GE': '268',
|
||||
'GM': '270',
|
||||
'PS': '275',
|
||||
'DE': '276',
|
||||
'GH': '288',
|
||||
'GI': '292',
|
||||
'KI': '296',
|
||||
'GR': '300',
|
||||
'GL': '304',
|
||||
'GD': '308',
|
||||
'GP': '312',
|
||||
'GU': '316',
|
||||
'GT': '320',
|
||||
'GN': '324',
|
||||
'GY': '328',
|
||||
'HT': '332',
|
||||
'HM': '334',
|
||||
'VA': '336',
|
||||
'HN': '340',
|
||||
'HK': '344',
|
||||
'HU': '348',
|
||||
'IS': '352',
|
||||
'IN': '356',
|
||||
'ID': '360',
|
||||
'IR': '364',
|
||||
'IQ': '368',
|
||||
'IE': '372',
|
||||
'IL': '376',
|
||||
'IT': '380',
|
||||
'CI': '384',
|
||||
'JM': '388',
|
||||
'JP': '392',
|
||||
'KZ': '398',
|
||||
'JO': '400',
|
||||
'KE': '404',
|
||||
'KP': '408',
|
||||
'KR': '410',
|
||||
'KW': '414',
|
||||
'KG': '417',
|
||||
'LA': '418',
|
||||
'LB': '422',
|
||||
'LS': '426',
|
||||
'LV': '428',
|
||||
'LR': '430',
|
||||
'LY': '434',
|
||||
'LI': '438',
|
||||
'LT': '440',
|
||||
'LU': '442',
|
||||
'MO': '446',
|
||||
'MG': '450',
|
||||
'MW': '454',
|
||||
'MY': '458',
|
||||
'MV': '462',
|
||||
'ML': '466',
|
||||
'MT': '470',
|
||||
'MQ': '474',
|
||||
'MR': '478',
|
||||
'MU': '480',
|
||||
'MX': '484',
|
||||
'MC': '492',
|
||||
'MN': '496',
|
||||
'MD': '498',
|
||||
'ME': '499',
|
||||
'MS': '500',
|
||||
'MA': '504',
|
||||
'MZ': '508',
|
||||
'OM': '512',
|
||||
'NA': '516',
|
||||
'NR': '520',
|
||||
'NP': '524',
|
||||
'NL': '528',
|
||||
'CW': '531',
|
||||
'AW': '533',
|
||||
'SX': '534',
|
||||
'BQ': '535',
|
||||
'NC': '540',
|
||||
'VU': '548',
|
||||
'NZ': '554',
|
||||
'NI': '558',
|
||||
'NE': '562',
|
||||
'NG': '566',
|
||||
'NU': '570',
|
||||
'NF': '574',
|
||||
'NO': '578',
|
||||
'MP': '580',
|
||||
'UM': '581',
|
||||
'FM': '583',
|
||||
'MH': '584',
|
||||
'PW': '585',
|
||||
'PK': '586',
|
||||
'PA': '591',
|
||||
'PG': '598',
|
||||
'PY': '600',
|
||||
'PE': '604',
|
||||
'PH': '608',
|
||||
'PN': '612',
|
||||
'PL': '616',
|
||||
'PT': '620',
|
||||
'GW': '624',
|
||||
'TL': '626',
|
||||
'PR': '630',
|
||||
'QA': '634',
|
||||
'RE': '638',
|
||||
'RO': '642',
|
||||
'RU': '643',
|
||||
'RW': '646',
|
||||
'BL': '652',
|
||||
'SH': '654',
|
||||
'KN': '659',
|
||||
'AI': '660',
|
||||
'LC': '662',
|
||||
'MF': '663',
|
||||
'PM': '666',
|
||||
'VC': '670',
|
||||
'SM': '674',
|
||||
'ST': '678',
|
||||
'SA': '682',
|
||||
'SN': '686',
|
||||
'RS': '688',
|
||||
'SC': '690',
|
||||
'SL': '694',
|
||||
'SG': '702',
|
||||
'SK': '703',
|
||||
'VN': '704',
|
||||
'SI': '705',
|
||||
'SO': '706',
|
||||
'ZA': '710',
|
||||
'ZW': '716',
|
||||
'ES': '724',
|
||||
'SS': '728',
|
||||
'SD': '729',
|
||||
'EH': '732',
|
||||
'SR': '740',
|
||||
'SZ': '748',
|
||||
'SE': '752',
|
||||
'CH': '756',
|
||||
'SY': '760',
|
||||
'TJ': '762',
|
||||
'TH': '764',
|
||||
'TG': '768',
|
||||
'TK': '772',
|
||||
'TO': '776',
|
||||
'TT': '780',
|
||||
'AE': '784',
|
||||
'TN': '788',
|
||||
'TR': '792',
|
||||
'TM': '795',
|
||||
'TC': '796',
|
||||
'TV': '798',
|
||||
'UG': '800',
|
||||
'UA': '804',
|
||||
'MK': '807',
|
||||
'EG': '818',
|
||||
'GB': '826',
|
||||
'GG': '831',
|
||||
'JE': '832',
|
||||
'IM': '833',
|
||||
'TZ': '834',
|
||||
'US': '840',
|
||||
'VI': '850',
|
||||
'BF': '854',
|
||||
'UY': '858',
|
||||
'UZ': '860',
|
||||
'VE': '862',
|
||||
'WF': '876',
|
||||
'WS': '882',
|
||||
'YE': '887',
|
||||
'ZM': '894'
|
||||
}
|
||||
|
||||
# Mapping of ISO 4217 currency codes to their number of decimals.
|
||||
# See https://en.wikipedia.org/wiki/ISO_4217#Minor_unit_fractions.
|
||||
CURRENCY_MINOR_UNITS = {
|
||||
'ADF': 2,
|
||||
'ADP': 0,
|
||||
|
|
@ -279,3 +538,15 @@ CURRENCY_MINOR_UNITS = {
|
|||
'ZWN': 2,
|
||||
'ZWR': 2
|
||||
}
|
||||
|
||||
REPORT_REASONS_MAPPING = {
|
||||
'exceed_max_amount': _lt("maximum amount exceeded"),
|
||||
'express_checkout_not_supported': _lt("express checkout not supported"),
|
||||
'incompatible_country': _lt("incompatible country"),
|
||||
'incompatible_currency': _lt("incompatible currency"),
|
||||
'incompatible_website': _lt("incompatible website"),
|
||||
'manual_capture_not_supported': _lt("manual capture not supported"),
|
||||
'provider_not_available': _lt("no supported provider available"),
|
||||
'tokenization_not_supported': _lt("tokenization not supported"),
|
||||
'validation_not_supported': _lt("tokenization without payment no supported"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue