diff --git a/currency_iso_numeric/__init__.py b/currency_iso_numeric/__init__.py new file mode 100644 index 00000000..a013db0b --- /dev/null +++ b/currency_iso_numeric/__init__.py @@ -0,0 +1,24 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Currency ISO Numeric module for Odoo +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + + +from . import res_currency diff --git a/currency_iso_numeric/__openerp__.py b/currency_iso_numeric/__openerp__.py new file mode 100644 index 00000000..750df4c7 --- /dev/null +++ b/currency_iso_numeric/__openerp__.py @@ -0,0 +1,48 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Currency ISO Numeric module for Odoo +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + + +{ + 'name': 'Currency ISO Numeric', + 'version': '0.1', + 'category': 'Currency', + 'license': 'AGPL-3', + 'summary': 'Adds ISO 4217 numeric codes on currencies', + 'description': """ +Currency ISO Numeric +==================== + +This module adds a field *ISO Numeric Code* on currencies. This numeric ISO code is required by some applications ; for example, it is used in the Telium protocol for the communication between the Point of Sale and the credit card reader. + +This module has been developped during a POS code sprint at Akretion France from July 7th to July 10th 2014. + +Please contact Alexis de Lattre from Akretion for any help or question about this module. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['base'], + 'data': [ + 'res_currency_data.xml', + 'res_currency_view.xml', + ], + 'active': False, +} diff --git a/currency_iso_numeric/i18n/currency_iso_numeric.pot b/currency_iso_numeric/i18n/currency_iso_numeric.pot new file mode 100644 index 00000000..04133e60 --- /dev/null +++ b/currency_iso_numeric/i18n/currency_iso_numeric.pot @@ -0,0 +1,27 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * currency_iso_numeric +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 8.0alpha1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-07-09 16:50+0000\n" +"PO-Revision-Date: 2014-07-09 16:50+0000\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: currency_iso_numeric +#: model:ir.model,name:currency_iso_numeric.model_res_currency +msgid "Currency" +msgstr "" + +#. module: currency_iso_numeric +#: field:res.currency,iso_numeric:0 +msgid "ISO Numeric Code" +msgstr "" + diff --git a/currency_iso_numeric/i18n/fr.po b/currency_iso_numeric/i18n/fr.po new file mode 100644 index 00000000..9efba192 --- /dev/null +++ b/currency_iso_numeric/i18n/fr.po @@ -0,0 +1,27 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * currency_iso_numeric +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 8.0alpha1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-07-09 16:51+0000\n" +"PO-Revision-Date: 2014-07-09 16:51+0000\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: currency_iso_numeric +#: model:ir.model,name:currency_iso_numeric.model_res_currency +msgid "Currency" +msgstr "Devise" + +#. module: currency_iso_numeric +#: field:res.currency,iso_numeric:0 +msgid "ISO Numeric Code" +msgstr "Code ISO numérique" + diff --git a/currency_iso_numeric/res_currency.py b/currency_iso_numeric/res_currency.py new file mode 100644 index 00000000..a52d119f --- /dev/null +++ b/currency_iso_numeric/res_currency.py @@ -0,0 +1,30 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Currency ISO Numeric module for Odoo +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + + +from openerp import models, fields + + +class Currency(models.Model): + _inherit = 'res.currency' + + iso_numeric = fields.Char(string='ISO Numeric Code', size=4) diff --git a/currency_iso_numeric/res_currency_data.xml b/currency_iso_numeric/res_currency_data.xml new file mode 100644 index 00000000..6efa4a18 --- /dev/null +++ b/currency_iso_numeric/res_currency_data.xml @@ -0,0 +1,615 @@ + + + + + + + + + + 971 + + + + 978 + + + + 008 + + + + 012 + + + + 840 + + + + 973 + + + + 951 + + + + 032 + + + + 051 + + + + 533 + + + + 036 + + + + 944 + + + + 044 + + + + 048 + + + + 050 + + + + 052 + + + + 974 + + + + 084 + + + + 952 + + + + 060 + + + + 064 + + + + 356 + + + + 068 + + + + 977 + + + + 072 + + + + 578 + + + + 986 + + + + 096 + + + + 975 + + + + 108 + + + + 116 + + + + 950 + + + + 124 + + + + 132 + + + + 136 + + + + 152 + + + + 156 + + + + 170 + + + + 174 + + + + 976 + + + + 554 + + + + 188 + + + + 191 + + + + 192 + + + + 532 + + + + 203 + + + + 208 + + + + 262 + + + + 214 + + + + 818 + + + + 222 + + + + 232 + + + + 230 + + + + 238 + + + + 242 + + + + 953 + + + + 270 + + + + 981 + + + + 936 + + + + 292 + + + + 320 + + + + 826 + + + + 324 + + + + 328 + + + + 332 + + + + 340 + + + + 344 + + + + 348 + + + + 352 + + + + 360 + + + + 364 + + + + 368 + + + + 376 + + + + 388 + + + + 392 + + + + 400 + + + + 398 + + + + 404 + + + + 408 + + + + 410 + + + + 414 + + + + 417 + + + + 418 + + + + 422 + + + + 426 + + + + 710 + + + + 430 + + + + 434 + + + + 756 + + + + 440 + + + + 446 + + + + 807 + + + + 969 + + + + 454 + + + + 458 + + + + 462 + + + + 478 + + + + 480 + + + + 484 + + + + 498 + + + + 496 + + + + 504 + + + + 943 + + + + 104 + + + + 516 + + + + 524 + + + + 558 + + + + 566 + + + + 512 + + + + 586 + + + + 590 + + + + 598 + + + + 600 + + + + 604 + + + + 608 + + + + 985 + + + + 634 + + + + 946 + + + + 643 + + + + 646 + + + + 654 + + + + 882 + + + + 678 + + + + 682 + + + + 941 + + + + 690 + + + + 694 + + + + 702 + + + + 090 + + + + 728 + + + + 144 + + + + 748 + + + + 752 + + + + 760 + + + + 901 + + + + 834 + + + + 764 + + + + 776 + + + + 780 + + + + 788 + + + + 949 + + + + 800 + + + + 980 + + + + 784 + + + + 858 + + + + 860 + + + + 548 + + + + 937 + + + + 704 + + + + 886 + + + + + diff --git a/currency_iso_numeric/res_currency_view.xml b/currency_iso_numeric/res_currency_view.xml new file mode 100644 index 00000000..cf0bbc9c --- /dev/null +++ b/currency_iso_numeric/res_currency_view.xml @@ -0,0 +1,37 @@ + + + + + + + + + + add.iso.numeric.res.currency.form + res.currency + + + + + + + + + + add.iso.numeric.res.currency.tree + res.currency + + + + + + + + + + +