Skip to content

Commit

Permalink
[MIG] base_currency_iso_4217: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MiquelRForgeFlow committed Feb 22, 2023
1 parent 50caa9b commit 254011f
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 3 deletions.
2 changes: 1 addition & 1 deletion base_currency_iso_4217/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"name": "Base Currency ISO 4217",
"version": "14.0.1.0.0",
"version": "15.0.1.0.0",
"category": "Base",
"license": "AGPL-3",
"summary": "Adds numeric code and full name to currencies, "
Expand Down
35 changes: 35 additions & 0 deletions base_currency_iso_4217/data/res_currency_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@
<field name="full_name">Swiss Franc</field>
<field name="numeric_code">756</field>
</record>
<record id="base.CLF" model="res.currency">
<field name="full_name">Unidad de Fomento</field>
<field name="numeric_code">990</field>
<field name="decimal_places">4</field>
</record>
<record id="base.CLP" model="res.currency">
<field name="full_name">Chilean Peso</field>
<field name="numeric_code">152</field>
Expand All @@ -127,10 +132,18 @@
<field name="full_name">Colombian Peso</field>
<field name="numeric_code">170</field>
</record>
<record id="base.COU" model="res.currency">
<field name="full_name">Unidad de Valor Real</field>
<field name="numeric_code">970</field>
</record>
<record id="base.CRC" model="res.currency">
<field name="full_name">Costa Rican Colon</field>
<field name="numeric_code">188</field>
</record>
<record id="base.CUC" model="res.currency">
<field name="full_name">Peso Convertible</field>
<field name="numeric_code">931</field>
</record>
<record id="base.CUP" model="res.currency">
<field name="full_name">Cuban Peso</field>
<field name="numeric_code">192</field>
Expand Down Expand Up @@ -508,6 +521,10 @@
<field name="full_name">Leone</field>
<field name="numeric_code">694</field>
</record>
<record id="base.SOS" model="res.currency">
<field name="full_name">Somali Shilling</field>
<field name="numeric_code">706</field>
</record>
<record id="base.SRD" model="res.currency">
<field name="full_name">Surinam Dollar</field>
<field name="numeric_code">968</field>
Expand All @@ -516,6 +533,10 @@
<field name="full_name">South Sudanese Pound</field>
<field name="numeric_code">728</field>
</record>
<record id="base.STN" model="res.currency">
<field name="full_name">Dobra</field>
<field name="numeric_code">930</field>
</record>
<record id="base.SVC" model="res.currency">
<field name="full_name">El Salvador Colon</field>
<field name="numeric_code">222</field>
Expand Down Expand Up @@ -578,14 +599,28 @@
<field name="full_name">US Dollar</field>
<field name="numeric_code">840</field>
</record>
<record id="base.UYI" model="res.currency">
<field name="full_name">Uruguay Peso en Unidades Indexadas</field>
<field name="numeric_code">940</field>
<field name="decimal_places">0</field>
</record>
<record id="base.UYU" model="res.currency">
<field name="full_name">Peso Uruguayo</field>
<field name="numeric_code">858</field>
</record>
<record id="base.UYW" model="res.currency">
<field name="full_name">Unidad Previsional</field>
<field name="numeric_code">927</field>
<field name="decimal_places">4</field>
</record>
<record id="base.UZS" model="res.currency">
<field name="full_name">Uzbekistan Sum</field>
<field name="numeric_code">860</field>
</record>
<record id="base.VES" model="res.currency">
<field name="full_name">Bolívar Soberano</field>
<field name="numeric_code">928</field>
</record>
<record id="base.VND" model="res.currency">
<field name="full_name">Dong</field>
<field name="numeric_code">704</field>
Expand Down
2 changes: 1 addition & 1 deletion base_currency_iso_4217/i18n/base_currency_iso_4217.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
Expand Down
1 change: 0 additions & 1 deletion base_currency_iso_4217/models/res_currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class ResCurrency(models.Model):
_inherit = "res.currency"

numeric_code = fields.Char(
string="Numeric Code",
help="ISO Numeric Code for currency, according to ISO 4217 standard.",
)

Expand Down
6 changes: 6 additions & 0 deletions setup/base_currency_iso_4217/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 254011f

Please sign in to comment.