diff --git a/base_currency_iso_4217/README.rst b/base_currency_iso_4217/README.rst new file mode 100644 index 00000000..b90b2794 --- /dev/null +++ b/base_currency_iso_4217/README.rst @@ -0,0 +1,94 @@ +====================== +Base Currency ISO 4217 +====================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:d058c0d1951a1fef5757468bab8d3e04c25438ea5614c6e1ea5714d6827f5637 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcommunity--data--files-lightgray.png?logo=github + :target: https://github.com/OCA/community-data-files/tree/17.0/base_currency_iso_4217 + :alt: OCA/community-data-files +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/community-data-files-17-0/community-data-files-17-0-base_currency_iso_4217 + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/community-data-files&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the following fields to the currencies, as defined by +the the ISO 4127 standard: + +- Numeric Code +- Full Name + +The module also updates the numeric code, full name and decimal places +fields of existing currencies in Odoo according to ISO 4217:2015. + +https://www.iso.org/iso-4217-currency-codes.html + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* ForgeFlow + +Contributors +------------ + +- Jordi Ballester Alomar + (https://www.forgeflow.com) +- Levent Karakaş + (https://www.eskayazilim.com.tr) +- `Tecnativa `__: + + - Carlos Roca + +- Alberto Nieto de Pablos + (https://braintec.com) + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/community-data-files `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_currency_iso_4217/__init__.py b/base_currency_iso_4217/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/base_currency_iso_4217/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/base_currency_iso_4217/__manifest__.py b/base_currency_iso_4217/__manifest__.py new file mode 100644 index 00000000..cf7e63c8 --- /dev/null +++ b/base_currency_iso_4217/__manifest__.py @@ -0,0 +1,17 @@ +# Copyright 2018 ForgeFlow, S.L. (https://www.forgeflow.com) +# @author: Jordi Ballester +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +{ + "name": "Base Currency ISO 4217", + "version": "17.0.1.0.0", + "category": "Base", + "license": "AGPL-3", + "summary": "Adds numeric code and full name to currencies, " + "following the ISO 4217 specification", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/community-data-files", + "depends": ["base"], + "data": ["data/res_currency_data.xml", "views/res_currency_views.xml"], + "installable": True, +} diff --git a/base_currency_iso_4217/data/res_currency_data.xml b/base_currency_iso_4217/data/res_currency_data.xml new file mode 100644 index 00000000..1efc5c1f --- /dev/null +++ b/base_currency_iso_4217/data/res_currency_data.xml @@ -0,0 +1,673 @@ + + + + UAE Dirham + 784 + + + Afghani + 971 + + + Lek + 008 + + + Armenian Dram + 051 + + + Netherlands Antillean Guilder + 532 + + + Kwanza + 973 + + + Argentine Peso + 032 + + + Australian Dollar + 036 + + + Aruban Florin + 533 + + + Azerbaijan Manat + 944 + + + Convertible Mark + 977 + + + Barbados Dollar + 052 + + + Taka + 050 + + + Bulgarian Lev + 975 + + + Bahraini Dinar + 048 + 3 + + + Burundi Franc + 108 + 0 + + + Bermudian Dollar + 060 + + + Brunei Dollar + 096 + + + Boliviano + 068 + + + Brazilian Real + 986 + + + Bahamian Dollar + 044 + + + Ngultrum + 064 + + + Pula + 072 + + + Belarusian Ruble + 933 + + + Belize Dollar + 084 + + + Canadian Dollar + 124 + + + Congolese Franc + 976 + + + Swiss Franc + 756 + + + Unidad de Fomento + 990 + 4 + + + Chilean Peso + 152 + 0 + + + Yuan Renminbi + 156 + + + Colombian Peso + 170 + + + Unidad de Valor Real + 970 + + + Costa Rican Colon + 188 + + + Peso Convertible + 931 + + + Cuban Peso + 192 + + + Cabo Verde Escudo + 132 + + + Czech Koruna + 203 + + + Djibouti Franc + 262 + 0 + + + Danish Krone + 208 + + + Dominican Peso + 214 + + + Algerian Dinar + 012 + + + Egyptian Pound + 818 + + + Nakfa + 232 + + + Ethiopian Birr + 230 + + + Euro + 978 + + + Fiji Dollar + 242 + + + Falkland Islands Pound + 238 + + + Pound Sterling + 826 + + + Lari + 981 + + + Ghana Cedi + 936 + + + Gibraltar Pound + 292 + + + Dalasi + 270 + + + Guinean Franc + 324 + 0 + + + Quetzal + 320 + + + Guyana Dollar + 328 + + + Hong Kong Dollar + 344 + + + Lempira + 340 + + + Kuna + 191 + + + Gourde + 332 + + + Forint + 348 + + + Rupiah + 360 + + + New Israeli Sheqel + 376 + + + Indian Rupee + 356 + + + Iraqi Dinar + 368 + 3 + + + Iranian Rial + 364 + + + Iceland Krona + 352 + 0 + + + Jamaican Dollar + 388 + + + Jordanian Dinar + 400 + 3 + + + Yen + 392 + 0 + + + Kenyan Shilling + 404 + + + Som + 417 + + + Riel + 116 + + + Comorian Franc + 174 + 0 + + + North Korean Won + 408 + + + Won + 410 + 0 + + + Kuwaiti Dinar + 414 + 3 + + + Cayman Islands Dollar + 136 + + + Tenge + 398 + + + Lao Kip + 418 + + + Lebanese Pound + 422 + + + Sri Lanka Rupee + 144 + + + Liberian Dollar + 430 + + + Loti + 426 + + + Libyan Dinar + 434 + 3 + + + Moroccan Dirham + 504 + + + Moldovan Leu + 498 + + + Malagasy Ariary + 969 + + + Denar + 807 + + + Kyat + 104 + + + Tugrik + 496 + + + Pataca + 446 + + + Ouguiya + 929 + + + Mauritius Rupee + 480 + + + Rufiyaa + 462 + + + Malawi Kwacha + 454 + + + Mexican Peso + 484 + + + Malaysian Ringgit + 458 + + + Mozambique Metical + 943 + + + Namibia Dollar + 516 + + + Naira + 566 + + + Cordoba Oro + 558 + + + Norwegian Krone + 578 + + + Nepalese Rupee + 524 + + + New Zealand Dollar + 554 + + + Rial Omani + 512 + 3 + + + Balboa + 590 + + + Sol + 604 + + + Kina + 598 + + + Philippine Peso + 608 + + + Pakistan Rupee + 586 + + + Zloty + 985 + + + Guarani + 600 + 0 + + + Qatari Rial + 634 + + + Romanian Leu + 946 + + + Serbian Dinar + 941 + + + Russian Ruble + 643 + + + Rwanda Franc + 646 + 0 + + + Saudi Riyal + 682 + + + Solomon Islands Dollar + 090 + + + Seychelles Rupee + 690 + + + Sudanese Pound + 938 + + + Swedish Krona + 752 + + + Singapore Dollar + 702 + + + Saint Helena Pound + 654 + + + Leone + 694 + + + Somali Shilling + 706 + + + Surinam Dollar + 968 + + + South Sudanese Pound + 728 + + + Dobra + 930 + + + El Salvador Colon + 222 + + + Syrian Pound + 760 + + + Lilangeni + 748 + + + Baht + 764 + + + Somoni + 972 + + + Turkmenistan New Manat + 934 + + + Tunisian Dinar + 788 + 3 + + + Pa’anga + 776 + + + Turkish Lira + 949 + + + Trinidad and Tobago Dollar + 780 + + + New Taiwan Dollar + 901 + + + Tanzanian Shilling + 834 + + + Hryvnia + 980 + + + Uganda Shilling + 800 + 0 + + + US Dollar + 840 + + + Uruguay Peso en Unidades Indexadas + 940 + 0 + + + Peso Uruguayo + 858 + + + Unidad Previsional + 927 + 4 + + + Uzbekistan Sum + 860 + + + Bolívar Soberano + 928 + + + Dong + 704 + 0 + + + Vatu + 548 + 0 + + + Tala + 882 + + + CFA Franc BEAC + 950 + 0 + + + East Caribbean Dollar + 951 + + + CFA Franc BCEAO + 952 + 0 + + + CFP Franc + 953 + 0 + + + Yemeni Rial + 886 + + + Rand + 710 + + + Zambian Kwacha + 967 + + + Zimbabwe Dollar + 932 + + diff --git a/base_currency_iso_4217/i18n/base_currency_iso_4217.pot b/base_currency_iso_4217/i18n/base_currency_iso_4217.pot new file mode 100644 index 00000000..5a6199fa --- /dev/null +++ b/base_currency_iso_4217/i18n/base_currency_iso_4217.pot @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_currency_iso_4217 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: base_currency_iso_4217 +#: model:ir.model,name:base_currency_iso_4217.model_res_currency +msgid "Currency" +msgstr "" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,help:base_currency_iso_4217.field_res_currency__full_name +msgid "Currency name, according to ISO 4217 standard" +msgstr "" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,field_description:base_currency_iso_4217.field_res_currency__full_name +msgid "Full name" +msgstr "" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,help:base_currency_iso_4217.field_res_currency__numeric_code +msgid "ISO Numeric Code for currency, according to ISO 4217 standard." +msgstr "" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,field_description:base_currency_iso_4217.field_res_currency__numeric_code +msgid "Numeric Code" +msgstr "" diff --git a/base_currency_iso_4217/i18n/de.po b/base_currency_iso_4217/i18n/de.po new file mode 100644 index 00000000..a590932d --- /dev/null +++ b/base_currency_iso_4217/i18n/de.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_currency_iso_4217 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: base_currency_iso_4217 +#: model:ir.model,name:base_currency_iso_4217.model_res_currency +msgid "Currency" +msgstr "" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,help:base_currency_iso_4217.field_res_currency__full_name +msgid "Currency name, according to ISO 4217 standard" +msgstr "" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,field_description:base_currency_iso_4217.field_res_currency__full_name +msgid "Full name" +msgstr "" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,help:base_currency_iso_4217.field_res_currency__numeric_code +msgid "ISO Numeric Code for currency, according to ISO 4217 standard." +msgstr "" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,field_description:base_currency_iso_4217.field_res_currency__numeric_code +msgid "Numeric Code" +msgstr "" diff --git a/base_currency_iso_4217/i18n/es.po b/base_currency_iso_4217/i18n/es.po new file mode 100644 index 00000000..b2ab8594 --- /dev/null +++ b/base_currency_iso_4217/i18n/es.po @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_currency_iso_4217 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: \n" +"PO-Revision-Date: \n" +"Last-Translator: Carlos \n" +"Language-Team: \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 2.0.6\n" + +#. module: base_currency_iso_4217 +#: model:ir.model,name:base_currency_iso_4217.model_res_currency +msgid "Currency" +msgstr "Moneda" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,help:base_currency_iso_4217.field_res_currency__full_name +msgid "Currency name, according to ISO 4217 standard" +msgstr "Nombre de moneda, de acuerdo con el estándar ISO 4217." + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,field_description:base_currency_iso_4217.field_res_currency__full_name +msgid "Full name" +msgstr "Nombre completo" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,help:base_currency_iso_4217.field_res_currency__numeric_code +msgid "ISO Numeric Code for currency, according to ISO 4217 standard." +msgstr "Código numérico ISO, de acuerdo con el estándar ISO 4217." + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,field_description:base_currency_iso_4217.field_res_currency__numeric_code +msgid "Numeric Code" +msgstr "Código numérico" diff --git a/base_currency_iso_4217/i18n/nl.po b/base_currency_iso_4217/i18n/nl.po new file mode 100644 index 00000000..3edc33e9 --- /dev/null +++ b/base_currency_iso_4217/i18n/nl.po @@ -0,0 +1,42 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_currency_iso_4217 +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-12-13 03:55+0000\n" +"Last-Translator: Bosd \n" +"Language-Team: none\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.10\n" + +#. module: base_currency_iso_4217 +#: model:ir.model,name:base_currency_iso_4217.model_res_currency +msgid "Currency" +msgstr "Valuta" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,help:base_currency_iso_4217.field_res_currency__full_name +msgid "Currency name, according to ISO 4217 standard" +msgstr "Valuta naam volgens ISO 4217 standaard" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,field_description:base_currency_iso_4217.field_res_currency__full_name +msgid "Full name" +msgstr "Volledige naam" + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,help:base_currency_iso_4217.field_res_currency__numeric_code +msgid "ISO Numeric Code for currency, according to ISO 4217 standard." +msgstr "ISO nummerieke Code voor valuta, volgens deo ISO 4217 standaard." + +#. module: base_currency_iso_4217 +#: model:ir.model.fields,field_description:base_currency_iso_4217.field_res_currency__numeric_code +msgid "Numeric Code" +msgstr "Numerieke Code" diff --git a/base_currency_iso_4217/models/__init__.py b/base_currency_iso_4217/models/__init__.py new file mode 100644 index 00000000..ea5a680d --- /dev/null +++ b/base_currency_iso_4217/models/__init__.py @@ -0,0 +1 @@ +from . import res_currency diff --git a/base_currency_iso_4217/models/res_currency.py b/base_currency_iso_4217/models/res_currency.py new file mode 100644 index 00000000..8e60a1af --- /dev/null +++ b/base_currency_iso_4217/models/res_currency.py @@ -0,0 +1,19 @@ +# Copyright 2018 ForgeFlow, S.L. (https://www.forgeflow.com) +# @author: Jordi Ballester +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ResCurrency(models.Model): + _inherit = "res.currency" + + numeric_code = fields.Char( + help="ISO Numeric Code for currency, according to ISO 4217 standard.", + ) + + full_name = fields.Char( + string="Full name", + help="Currency name, according to ISO 4217 standard", + translate=True, + ) diff --git a/base_currency_iso_4217/pyproject.toml b/base_currency_iso_4217/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/base_currency_iso_4217/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/base_currency_iso_4217/readme/CONTRIBUTORS.md b/base_currency_iso_4217/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..cc1c814c --- /dev/null +++ b/base_currency_iso_4217/readme/CONTRIBUTORS.md @@ -0,0 +1,8 @@ +- Jordi Ballester Alomar \<\> + () +- Levent Karakaş \<\> + () +- [Tecnativa](https://www.tecnativa.com): + - Carlos Roca +- Alberto Nieto de Pablos \<\> + () diff --git a/base_currency_iso_4217/readme/DESCRIPTION.md b/base_currency_iso_4217/readme/DESCRIPTION.md new file mode 100644 index 00000000..aaed5ded --- /dev/null +++ b/base_currency_iso_4217/readme/DESCRIPTION.md @@ -0,0 +1,10 @@ +This module adds the following fields to the currencies, as defined by +the the ISO 4127 standard: + +- Numeric Code +- Full Name + +The module also updates the numeric code, full name and decimal places +fields of existing currencies in Odoo according to ISO 4217:2015. + + diff --git a/base_currency_iso_4217/static/description/icon.png b/base_currency_iso_4217/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/base_currency_iso_4217/static/description/icon.png differ diff --git a/base_currency_iso_4217/static/description/index.html b/base_currency_iso_4217/static/description/index.html new file mode 100644 index 00000000..5dec95aa --- /dev/null +++ b/base_currency_iso_4217/static/description/index.html @@ -0,0 +1,438 @@ + + + + + + +Base Currency ISO 4217 + + + +
+

Base Currency ISO 4217

+ + +

Beta License: AGPL-3 OCA/community-data-files Translate me on Weblate Try me on Runboat

+

This module adds the following fields to the currencies, as defined by +the the ISO 4127 standard:

+
    +
  • Numeric Code
  • +
  • Full Name
  • +
+

The module also updates the numeric code, full name and decimal places +fields of existing currencies in Odoo according to ISO 4217:2015.

+

https://www.iso.org/iso-4217-currency-codes.html

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • ForgeFlow
  • +
+
+ +
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/community-data-files project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/base_currency_iso_4217/views/res_currency_views.xml b/base_currency_iso_4217/views/res_currency_views.xml new file mode 100644 index 00000000..4b8eb977 --- /dev/null +++ b/base_currency_iso_4217/views/res_currency_views.xml @@ -0,0 +1,30 @@ + + + + + res.currency.tree + res.currency + + + + + + + + + + res.currency.form + res.currency + + + + + + + + +