From a1f003ef35a509b790f77638e72280251e62b8b0 Mon Sep 17 00:00:00 2001 From: hsa-tinyerp <> Date: Wed, 18 Jul 2012 13:04:43 +0530 Subject: [PATCH 01/13] [IMP]base:added country_data and currency_data xml files bzr revid: help-20120718073443-sfo0odgz19biql39 --- openerp/addons/base/__openerp__.py | 2 + openerp/addons/base/base_data.xml | 1664 ------------------------- openerp/addons/base/country_data.xml | 1032 +++++++++++++++ openerp/addons/base/currency_data.xml | 1657 ++++++++++++++++++++++++ 4 files changed, 2691 insertions(+), 1664 deletions(-) create mode 100644 openerp/addons/base/country_data.xml create mode 100644 openerp/addons/base/currency_data.xml diff --git a/openerp/addons/base/__openerp__.py b/openerp/addons/base/__openerp__.py index 31e237a6a06..30497adcdea 100644 --- a/openerp/addons/base/__openerp__.py +++ b/openerp/addons/base/__openerp__.py @@ -32,6 +32,8 @@ 'depends': [], 'init_xml': [ 'base_data.xml', + 'currency_data.xml', + 'country_data.xml', 'security/base_security.xml', 'base_menu.xml', 'res/res_security.xml', diff --git a/openerp/addons/base/base_data.xml b/openerp/addons/base/base_data.xml index 7f5b4dec109..74a88454290 100644 --- a/openerp/addons/base/base_data.xml +++ b/openerp/addons/base/base_data.xml @@ -30,1031 +30,6 @@ - - - United Arab Emirates - ae - - - Afghanistan, Islamic State of - af - - - Antigua and Barbuda - ag - - - Anguilla - ai - - - Albania - al - - - Armenia - am - - - Netherlands Antilles - an - - - Angola - ao - - - Antarctica - aq - - - Argentina - ar - - - American Samoa - as - - - Austria - at - - - Australia - au - - - - Aruba - aw - - - Åland Islands - ax - - - Azerbaijan - az - - - Bosnia-Herzegovina - ba - - - Barbados - bb - - - Bangladesh - bd - - - Belgium - be - - - - Burkina Faso - bf - - - Bulgaria - bg - - - Bahrain - bh - - - Burundi - bi - - - Benin - bj - - - Saint Barthélémy - bl - - - Bermuda - bm - - - Brunei Darussalam - bn - - - Bolivia - bo - - - Bonaire, Sint Eustatius and Saba - bq - - - Brazil - br - - - - Bahamas - bs - - - Bhutan - bt - - - Bouvet Island - bv - - - Botswana - bw - - - Belarus - by - - - Belize - bz - - - Canada - ca - - - - Cocos (Keeling) Islands - cc - - - Central African Republic - cf - - - Congo, Democratic Republic of the - cd - - - Congo - cg - - - Switzerland - ch - - - Ivory Coast (Cote D'Ivoire) - ci - - - Cook Islands - ck - - - Chile - cl - - - Cameroon - cm - - - China - cn - - - Colombia - co - - - Costa Rica - cr - - - Cuba - cu - - - Cape Verde - cv - - - Curaçao - cw - - - Christmas Island - cx - - - Cyprus - cy - - - Czech Republic - cz - - - Germany - de - - - - Djibouti - dj - - - Denmark - dk - - - Dominica - dm - - - Dominican Republic - do - - - Algeria - dz - - - Ecuador - ec - - - Estonia - ee - - - Egypt - eg - - - Western Sahara - eh - - - Eritrea - er - - - Spain - es - - - - Ethiopia - et - - - Finland - fi - - - Fiji - fj - - - Falkland Islands - fk - - - Micronesia - fm - - - Faroe Islands - fo - - - France - fr - - - - Gabon - ga - - - Grenada - gd - - - Georgia - ge - - - French Guyana - gf - - - Ghana - gh - - - Gibraltar - gi - - - Guernsey - gg - - - Greenland - gl - - - Gambia - gm - - - Guinea - gn - - - Guadeloupe (French) - gp - - - Equatorial Guinea - gq - - - Greece - gr - - - South Georgia and the South Sandwich Islands - gs - - - Guatemala - gt - - - Guam (USA) - gu - - - Guinea Bissau - gw - - - Guyana - gy - - - Hong Kong - hk - - - Heard and McDonald Islands - hm - - - Honduras - hn - - - Croatia - hr - - - Haiti - ht - - - Hungary - hu - - - Indonesia - id - - - Ireland - ie - - - Israel - il - - - Isle of Man - im - - - India - in - - - - British Indian Ocean Territory - io - - - Iraq - iq - - - Iran - ir - - - Iceland - is - - - Italy - it - - - Jersey - je - - - Jamaica - jm - - - Jordan - jo - - - Japan - jp - - - Kenya - ke - - - Kyrgyz Republic (Kyrgyzstan) - kg - - - Cambodia, Kingdom of - kh - - - Kiribati - ki - - - Comoros - km - - - Saint Kitts & Nevis Anguilla - kn - - - North Korea - kp - - - South Korea - kr - - - Kuwait - kw - - - Cayman Islands - ky - - - Kazakhstan - kz - - - Laos - la - - - Lebanon - lb - - - Saint Lucia - lc - - - Liechtenstein - li - - - Sri Lanka - lk - - - Liberia - lr - - - Lesotho - ls - - - Lithuania - lt - - - Luxembourg - lu - - - Latvia - lv - - - Libya - ly - - - Morocco - ma - - - Monaco - mc - - - Moldavia - md - - - Montenegro - me - - - Saint Martin (French part) - mf - - - Madagascar - mg - - - Marshall Islands - mh - - - Macedonia, the former Yugoslav Republic of - mk - - - Mali - ml - - - Myanmar - mm - - - Mongolia - mn - - - Macau - mo - - - Northern Mariana Islands - mp - - - Martinique (French) - mq - - - Mauritania - mr - - - Montserrat - ms - - - Malta - mt - - - Mauritius - mu - - - Maldives - mv - - - Malawi - mw - - - Mexico - mx - - - Malaysia - my - - - Mozambique - mz - - - Namibia - na - - - New Caledonia (French) - nc - - - Niger - ne - - - Norfolk Island - nf - - - Nigeria - ng - - - Nicaragua - ni - - - Netherlands - nl - - - - Norway - no - - - Nepal - np - - - Nauru - nr - - - Neutral Zone - nt - - - Niue - nu - - - New Zealand - nz - - - Oman - om - - - Panama - pa - - - Peru - pe - - - Polynesia (French) - pf - - - Papua New Guinea - pg - - - Philippines - ph - - - Pakistan - pk - - - Poland - pl - - - Saint Pierre and Miquelon - pm - - - Pitcairn Island - pn - - - Puerto Rico - pr - - - Palestinian Territory, Occupied - ps - - - Portugal - pt - - - Palau - pw - - - Paraguay - py - - - Qatar - qa - - - Reunion (French) - re - - - Romania - ro - - - Serbia - rs - - - Russian Federation - ru - - - Rwanda - rw - - - Saudi Arabia - sa - - - Solomon Islands - sb - - - Seychelles - sc - - - Sudan - sd - - - Sweden - se - - - Singapore - sg - - - Saint Helena - sh - - - Slovenia - si - - - Svalbard and Jan Mayen Islands - sj - - - Slovakia - sk - - - Sierra Leone - sl - - - San Marino - sm - - - Senegal - sn - - - Somalia - so - - - Suriname - sr - - - South Sudan - ss - - - Saint Tome (Sao Tome) and Principe - st - - - El Salvador - sv - - - Sint Maarten (Dutch part) - sx - - - Syria - sy - - - Swaziland - sz - - - Turks and Caicos Islands - tc - - - Chad - td - - - French Southern Territories - tf - - - Togo - tg - - - Thailand - th - - - Tajikistan - tj - - - Tokelau - tk - - - Turkmenistan - tm - - - Tunisia - tn - - - Tonga - to - - - East Timor - tp - - - Turkey - tr - - - Trinidad and Tobago - tt - - - Tuvalu - tv - - - Taiwan - tw - - - Tanzania - tz - - - Ukraine - ua - - - Uganda - ug - - - United Kingdom - - gb - - - USA Minor Outlying Islands - um - - - United States - us - - - - Uruguay - uy - - - Uzbekistan - uz - - - Holy See (Vatican City State) - va - - - Saint Vincent & Grenadines - vc - - - Venezuela - ve - - - Virgin Islands (British) - vg - - - Virgin Islands (USA) - vi - - - Vietnam - vn - - - Vanuatu - vu - - - Wallis and Futuna Islands - wf - - - Samoa - ws - - - Yemen - ye - - - Mayotte - yt - - - Yugoslavia - yu - - - South Africa - za - - - Zambia - zm - - - - Zaire - zr - - - Zimbabwe - zw - - Your Company @@ -1101,644 +76,5 @@ - - - - - - - USD - $ - 0.01 - 4 - - - - 1.2834 - - - - - - - VEF - Bs.F - 0.0001 - 4 - - - - 5.864 - - - - - - CAD - $ - 0.01 - 4 - - - - 1.3388 - - - - - - - CHF - CHF - 0.01 - 4 - - - - 1.3086 - - - - - - BRL - R$ - 0.01 - 4 - - - - 2.2344 - - - - - - CNY - ¥ - 0.01 - 4 - - - - 8.7556 - - - - - - - COP - $ - 0.01 - 4 - - - - 2933.8378 - - - - - - CZK - - 0.01 - 4 - - - - 26.5634 - - - - - - DKK - kr - 0.01 - 4 - - - - 7.4445 - - - - - - - HUF - Ft - 0.01 - 4 - - - - 271.5621 - - - - - - IDR - Rp - 0.01 - 4 - - - - 14352.00 - - - - - 11796.39 - - - - - - LVL - Ls - 0.01 - 4 - - - - 0.7086 - - - - - - - NOK - kr - 0.01 - 4 - - - - 7.8668 - - - - - - XPF - XPF - 1.00 - 4 - - - - 119.331742 - - - - - - PAB - B/. - 0.01 - 4 - - - - 1.2676 - - - - - - PLN - - 0.01 - 4 - - - - 4.1005 - - - - - - SEK - kr - 0.01 - 4 - - - - 10.3004 - - - - - - GBP - £ - 0.01 - 4 - - - - 0.8333 - - - - - - ARS - $ - 0.01 - 4 - - - - 5.0881 - - - - - - INR - - 0.01 - 4 - - - - 59.9739 - - - - - - AUD - $ - 0.01 - 4 - - - - 1.4070 - - - - - - UAH - - 0.01 - 4 - - - - 10.1969 - - - - - - VND - - 0.01 - 4 - - - - 26330.01 - - - - - - HKD - $ - 0.01 - 4 - - - - 11.1608 - - - - - - JPY - ¥ - 0.01 - 4 - - - - 133.62 - - - - - - BGN - лв - 0.01 - 4 - - - - 1.9558 - - - - - - LTL - Lt - 0.01 - 4 - - - - 3.4528 - - - - - - RON - lei - 0.01 - 4 - - - - 4.2253 - - - - - - HRK - kn - 0.01 - 4 - - - - 7.2936 - - - - - - RUB - руб - 0.01 - 4 - - - - 43.16 - - - - - - TRY - TL - 0.01 - 4 - - - - 2.1411 - - - - - - KRW - - 0.01 - 4 - - - - 1662.37 - - - - - - MXN - $ - 0.01 - 4 - - - - 18.6664 - - - - - - MYR - RM - 0.01 - 4 - - - - 4.8887 - - - - - - NZD - $ - 0.01 - 4 - - - - 1.9764 - - - - - - PHP - Php - 0.01 - 4 - - - - 66.1 - - - - - - SGD - $ - 0.01 - 4 - - - - 2.0126 - - - - - - THB - ฿ - 0.01 - 4 - - - - 47.779 - - - - - - ZAR - R - 0.01 - 4 - - - - 10.5618 - - - - - - Reserve - - - - CRC - 0.01 - 4 - ¢ - - - - 691.3153 - - - - - - localhost - localhost - - - - - - MUR - Rs - 0.01 - 4 - - - - 40.28 - - - - - - XOF - CFA - 1 - 4 - - - - 655.957 - - - - - - XAF - FCFA - 1 - 4 - - - - 655.957 - - - - - - UGX - USh - 1 - 4 - - - - 3401.91388 - - - - - - HNL - L - 0.01 - 4 - - - - 25 - - - - - - - CLP - $ - 0.01 - 4 - - - - 710 - - - - - - - UYU - $ - 0.01 - 4 - - - - - - 28.36 - - diff --git a/openerp/addons/base/country_data.xml b/openerp/addons/base/country_data.xml new file mode 100644 index 00000000000..b991b28fad0 --- /dev/null +++ b/openerp/addons/base/country_data.xml @@ -0,0 +1,1032 @@ + + + + + + + United Arab Emirates + ae + + + Afghanistan, Islamic State of + af + + + Antigua and Barbuda + ag + + + Anguilla + ai + + + Albania + al + + + Armenia + am + + + Netherlands Antilles + an + + + + Angola + ao + + + Antarctica + aq + + + Argentina + ar + + + American Samoa + as + + + Austria + at + + + Australia + au + + + + Aruba + aw + + + Åland Islands + ax + + + Azerbaijan + az + + + Bosnia-Herzegovina + ba + + + Barbados + bb + + + Bangladesh + bd + + + Belgium + be + + + + Burkina Faso + bf + + + Bulgaria + bg + + + Bahrain + bh + + + Burundi + bi + + + Benin + bj + + + Saint Barthélémy + bl + + + Bermuda + bm + + + Brunei Darussalam + bn + + + Bolivia + bo + + + Bonaire, Sint Eustatius and Saba + bq + + + Brazil + br + + + + Bahamas + bs + + + Bhutan + bt + + + Bouvet Island + bv + + + Botswana + bw + + + Belarus + by + + + Belize + bz + + + Canada + ca + + + + Cocos (Keeling) Islands + cc + + + Central African Republic + cf + + + Congo, Democratic Republic of the + cd + + + Congo + cg + + + Switzerland + ch + + + Ivory Coast (Cote D'Ivoire) + ci + + + Cook Islands + ck + + + Chile + cl + + + Cameroon + cm + + + China + cn + + + Colombia + co + + + Costa Rica + cr + + + Cuba + cu + + + Cape Verde + cv + + + Curaçao + cw + + + Christmas Island + cx + + + Cyprus + cy + + + Czech Republic + cz + + + Germany + de + + + + Djibouti + dj + + + Denmark + dk + + + Dominica + dm + + + Dominican Republic + do + + + Algeria + dz + + + Ecuador + ec + + + Estonia + ee + + + Egypt + eg + + + Western Sahara + eh + + + Eritrea + er + + + Spain + es + + + + Ethiopia + et + + + Finland + fi + + + Fiji + fj + + + Falkland Islands + fk + + + Micronesia + fm + + + Faroe Islands + fo + + + France + fr + + + + Gabon + ga + + + Grenada + gd + + + Georgia + ge + + + French Guyana + gf + + + Ghana + gh + + + Gibraltar + gi + + + Guernsey + gg + + + Greenland + gl + + + Gambia + gm + + + Guinea + gn + + + Guadeloupe (French) + gp + + + Equatorial Guinea + gq + + + Greece + gr + + + South Georgia and the South Sandwich Islands + gs + + + Guatemala + gt + + + Guam (USA) + gu + + + Guinea Bissau + gw + + + Guyana + gy + + + Hong Kong + hk + + + Heard and McDonald Islands + hm + + + Honduras + hn + + + Croatia + hr + + + Haiti + ht + + + Hungary + hu + + + Indonesia + id + + + Ireland + ie + + + Israel + il + + + Isle of Man + im + + + India + in + + + + British Indian Ocean Territory + io + + + Iraq + iq + + + Iran + ir + + + Iceland + is + + + Italy + it + + + Jersey + je + + + Jamaica + jm + + + Jordan + jo + + + Japan + jp + + + Kenya + ke + + + Kyrgyz Republic (Kyrgyzstan) + kg + + + Cambodia, Kingdom of + kh + + + Kiribati + ki + + + Comoros + km + + + Saint Kitts & Nevis Anguilla + kn + + + North Korea + kp + + + South Korea + kr + + + Kuwait + kw + + + Cayman Islands + ky + + + Kazakhstan + kz + + + Laos + la + + + Lebanon + lb + + + Saint Lucia + lc + + + Liechtenstein + li + + + Sri Lanka + lk + + + Liberia + lr + + + Lesotho + ls + + + Lithuania + lt + + + Luxembourg + lu + + + Latvia + lv + + + Libya + ly + + + Morocco + ma + + + Monaco + mc + + + Moldavia + md + + + Montenegro + me + + + Saint Martin (French part) + mf + + + Madagascar + mg + + + Marshall Islands + mh + + + Macedonia, the former Yugoslav Republic of + mk + + + Mali + ml + + + Myanmar + mm + + + Mongolia + mn + + + Macau + mo + + + Northern Mariana Islands + mp + + + Martinique (French) + mq + + + Mauritania + mr + + + Montserrat + ms + + + Malta + mt + + + Mauritius + mu + + + Maldives + mv + + + Malawi + mw + + + Mexico + mx + + + Malaysia + my + + + Mozambique + mz + + + Namibia + na + + + New Caledonia (French) + nc + + + Niger + ne + + + Norfolk Island + nf + + + Nigeria + ng + + + Nicaragua + ni + + + Netherlands + nl + + + + Norway + no + + + Nepal + np + + + Nauru + nr + + + Neutral Zone + nt + + + Niue + nu + + + New Zealand + nz + + + Oman + om + + + Panama + pa + + + Peru + pe + + + Polynesia (French) + pf + + + Papua New Guinea + pg + + + Philippines + ph + + + Pakistan + pk + + + Poland + pl + + + Saint Pierre and Miquelon + pm + + + Pitcairn Island + pn + + + Puerto Rico + pr + + + Palestinian Territory, Occupied + ps + + + Portugal + pt + + + Palau + pw + + + Paraguay + py + + + Qatar + qa + + + Reunion (French) + re + + + Romania + ro + + + Serbia + rs + + + Russian Federation + ru + + + Rwanda + rw + + + Saudi Arabia + sa + + + Solomon Islands + sb + + + Seychelles + sc + + + Sudan + sd + + + Sweden + se + + + Singapore + sg + + + Saint Helena + sh + + + Slovenia + si + + + Svalbard and Jan Mayen Islands + sj + + + Slovakia + sk + + + Sierra Leone + sl + + + San Marino + sm + + + Senegal + sn + + + Somalia + so + + + Suriname + sr + + + South Sudan + ss + + + Saint Tome (Sao Tome) and Principe + st + + + El Salvador + sv + + + Sint Maarten (Dutch part) + sx + + + Syria + sy + + + Swaziland + sz + + + Turks and Caicos Islands + tc + + + Chad + td + + + French Southern Territories + tf + + + Togo + tg + + + Thailand + th + + + Tajikistan + tj + + + Tokelau + tk + + + Turkmenistan + tm + + + Tunisia + tn + + + Tonga + to + + + East Timor + tp + + + Turkey + tr + + + Trinidad and Tobago + tt + + + Tuvalu + tv + + + Taiwan + tw + + + Tanzania + tz + + + Ukraine + ua + + + Uganda + ug + + + United Kingdom + + gb + + + USA Minor Outlying Islands + um + + + United States + us + + + + Uruguay + uy + + + Uzbekistan + uz + + + Holy See (Vatican City State) + va + + + Saint Vincent & Grenadines + vc + + + Venezuela + ve + + + Virgin Islands (British) + vg + + + Virgin Islands (USA) + vi + + + Vietnam + vn + + + Vanuatu + vu + + + Wallis and Futuna Islands + wf + + + Samoa + ws + + + Yemen + ye + + + Mayotte + yt + + + Yugoslavia + yu + + + South Africa + za + + + Zambia + zm + + + + Zaire + zr + + + Zimbabwe + zw + + + + \ No newline at end of file diff --git a/openerp/addons/base/currency_data.xml b/openerp/addons/base/currency_data.xml new file mode 100644 index 00000000000..160749d3995 --- /dev/null +++ b/openerp/addons/base/currency_data.xml @@ -0,0 +1,1657 @@ + + + + + + + + + + USD + $ + 0.01 + 4 + + + + 1.2834 + + + + + + + VEF + Bs.F + 0.0001 + 4 + + + + 5.864 + + + + + + CAD + $ + 0.01 + 4 + + + + 1.3388 + + + + + + + CHF + CHF + 0.01 + 4 + + + + 1.3086 + + + + + + BRL + R$ + 0.01 + 4 + + + + 2.2344 + + + + + + CNY + ¥ + 0.01 + 4 + + + + 8.7556 + + + + + + + COP + $ + 0.01 + 4 + + + + 2933.8378 + + + + + + CZK + + 0.01 + 4 + + + + 26.5634 + + + + + + DKK + kr + 0.01 + 4 + + + + 7.4445 + + + + + + + HUF + Ft + 0.01 + 4 + + + + 271.5621 + + + + + + IDR + Rp + 0.01 + 4 + + + + 14352.00 + + + + + 11796.39 + + + + + + LVL + Ls + 0.01 + 4 + + + + 0.7086 + + + + + + + NOK + kr + 0.01 + 4 + + + + 7.8668 + + + + + + XPF + XPF + 1.00 + 4 + + + + 119.331742 + + + + + + PAB + B/. + 0.01 + 4 + + + + 1.2676 + + + + + + PLN + + 0.01 + 4 + + + + 4.1005 + + + + + + SEK + kr + 0.01 + 4 + + + + 10.3004 + + + + + + GBP + £ + 0.01 + 4 + + + + 0.8333 + + + + + + ARS + $ + 0.01 + 4 + + + + 5.0881 + + + + + + INR + + 0.01 + 4 + + + + 59.9739 + + + + + + AUD + $ + 0.01 + 4 + + + + 1.4070 + + + + + + UAH + + 0.01 + 4 + + + + 10.1969 + + + + + + VND + + 0.01 + 4 + + + + 26330.01 + + + + + + HKD + $ + 0.01 + 4 + + + + 11.1608 + + + + + + JPY + ¥ + 0.01 + 4 + + + + 133.62 + + + + + + BGN + лв + 0.01 + 4 + + + + 1.9558 + + + + + + LTL + Lt + 0.01 + 4 + + + + 3.4528 + + + + + + RON + lei + 0.01 + 4 + + + + 4.2253 + + + + + + HRK + kn + 0.01 + 4 + + + + 7.2936 + + + + + + RUB + руб + 0.01 + 4 + + + + 43.16 + + + + + + TRY + TL + 0.01 + 4 + + + + 2.1411 + + + + + + KRW + + 0.01 + 4 + + + + 1662.37 + + + + + + MXN + $ + 0.01 + 4 + + + + 18.6664 + + + + + + MYR + RM + 0.01 + 4 + + + + 4.8887 + + + + + + NZD + $ + 0.01 + 4 + + + + 1.9764 + + + + + + PHP + Php + 0.01 + 4 + + + + 66.1 + + + + + + SGD + $ + 0.01 + 4 + + + + 2.0126 + + + + + + THB + ฿ + 0.01 + 4 + + + + 47.779 + + + + + + ZAR + R + 0.01 + 4 + + + + 10.5618 + + + + + + Reserve + + + + CRC + 0.01 + 4 + ¢ + + + + 691.3153 + + + + + + localhost + localhost + + + + + + MUR + Rs + 0.01 + 4 + + + + 40.28 + + + + + + XOF + CFA + 1 + 4 + + + + 655.957 + + + + + + XAF + FCFA + 1 + 4 + + + + 655.957 + + + + + + UGX + USh + 1 + 4 + + + + 3401.91388 + + + + + + HNL + L + 0.01 + 4 + + + + 25 + + + + + + + CLP + $ + 0.01 + 4 + + + + 710 + + + + + + + UYU + $ + 0.01 + 4 + + + + + + 28.36 + + + + AFN + Afghani + 0.01 + 4 + + + + + + 59.33 + + + + AOA + Kz + 0.01 + 4 + + + + + + 117.080 + + + + XCD + $ + 0.01 + 4 + + + + + + 3.32 + + + + AMD + դր. + 0.01 + 4 + + + + + + 506.02 + + + + AWG + Afl. + 0.01 + 4 + + + + + + 0.45 + + + + AZN + m , man. + 0.01 + 4 + + + + + + 0.96 + + + + BSD + B$ + 0.01 + 4 + + + + + + 1.23 + + + + BHD + BD + 0.01 + 4 + + + + + + 0.46 + + + + BDT + + 0.01 + 4 + + + + + + 100.59 + + + + BBD + Bds$ + 0.01 + 4 + + + + + + 2.46 + + + + BYR + BR + 0.01 + 4 + + + + + + 10228.19 + + + + BZD + BZ$ + 0.01 + 4 + + + + + + 2.33 + + + + BMD + BD$ + 0.01 + 4 + + + + + + 1.23 + + + + BTN + Nu. + 0.01 + 4 + + + + + + 67.81 + + + + BOB + Bs. + 0.01 + 4 + + + + + + 8.50 + + + + BAM + KM + 0.01 + 4 + + + + + + 1.96 + + + + BWP + P + 0.01 + 4 + + + + + + 9.45 + + + + BGN + lev + 0.01 + 4 + + + + + + 1.95 + + + + BIF + FBu + 0.01 + 4 + + + + + + 1736.73 + + + + KHR + + 0.01 + 4 + + + + + + 5054.53 + + + + KYD + $ + 0.01 + 4 + + + + + + 1.007 + + + + KMF + CF + 0.01 + 4 + + + + + + 492.23 + + + + CDF + FC + 0.01 + 4 + + + + + + 1112.80 + + + + CUP + $ + 0.01 + 4 + + + + + + 1.226 + + + + ANG + ƒ + 0.01 + 4 + + + + + + 2.11 + + + + CYP + £ + 0.01 + 4 + + + + + + 0.475 + + + + DJF + Fdj + 0.01 + 4 + + + + + + 222.22 + + + + DOP + RD$ + 0.01 + 4 + + + + + + 48.09 + + + + TPE + $ + 0.01 + 4 + + + + + + 0.00 + + + + ECS + $ + 0.01 + 4 + + + + + + 0.00 + + + + EGP + + 0.01 + 4 + + + + + + 7.46 + + + + SVC + ¢ + 0.01 + 4 + + + + + + 10.74 + + + + ERN + Nfk + 0.01 + 4 + + + + + + 18.89 + + + + EEK + kr + 0.01 + 4 + + + + + + 14.41 + + + + ETB + Br + 0.01 + 4 + + + + + + 21.94 + + + + FKP + £ + 0.01 + 4 + + + + + + 0.78 + + + + FJD + FJ$ + 0.01 + 4 + + + + + + 2.22 + + + + GEL + + 0.01 + 4 + + + + + + 2.018 + + + + GIP + £ + 0.01 + 4 + + + + + + 0.786 + + + + QTQ + Q + 0.01 + 4 + + + + + + 10.27 + + + + GGP + £ + 0.01 + 4 + + + + + + 0.786 + + + + GNF + FG + 0.01 + 4 + + + + + + 8835.85 + + + + GWP + CFA + 0.01 + 4 + + + + + + 657.89 + + + + GYD + $ + 0.01 + 4 + + + + + + 247.31 + + + + HTG + G + 0.01 + 4 + + + + + + 51.69 + + + + ISK + kr + 0.01 + 4 + + + + + + 158.70 + + + + IRR + + 0.01 + 4 + + + + + + 15059.97 + + + + IQD + ع.د + 0.01 + 4 + + + + + + 1432.27 + + + + ILS + + 0.01 + 4 + + + + + + 4.89 + + + + JMD + $ + 0.01 + 4 + + + + + + 108.94 + + + + JOD + د.ا + 0.01 + 4 + + + + + + 0.87 + + + + KZT + Т + 0.01 + 4 + + + + + + 184.09 + + + + KES + Sh + 0.01 + 4 + + + + + + 103.43 + + + + KWD + د.ك + 0.01 + 4 + + + + + + 0.35 + + + + KGS + KGS + 0.01 + 4 + + + + + + 57.93 + + + + LAK + + 0.01 + 4 + + + + + + 9847.72 + + + + LAK + + 0.01 + 4 + + + + + + 9847.72 + + + + LBP + ل.ل + 0.01 + 4 + + + + + + 1853.94 + + + + LSL + L + 0.01 + 4 + + + + + + 10.06 + + + + LRD + $ + 0.01 + 4 + + + + + + 90.28 + + + + LYD + ل.د + 0.01 + 4 + + + + + + 1.54 + + + + MOP + P + 0.01 + 4 + + + + + + 9.81 + + + + MKD + ден + 0.01 + 4 + + + + + + 60.29 + + + + MGA + MGA + 0.01 + 4 + + + + + + 2775.86 + + + + MWK + MK + 0.01 + 4 + + + + + + 329.79 + + + + MVK + ރ. + 0.01 + 4 + + + + + + 18.89 + + + + MRO + UM + 0.01 + 4 + + + + + + 362.23 + + + + MDL + L + 0.01 + 4 + + + + + + 15.27 + + + + MNT + + 0.01 + 4 + + + + + + 1643.57 + + + + MAD + د.م. + 0.01 + 4 + + + + + + 10.99 + + + + MZN + MZN + 0.01 + 4 + + + + + + 33.65 + + + + MMK + K + 0.01 + 4 + + + + + + 1080.82 + + + + NAD + $ + 0.01 + 4 + + + + + + 10.06 + + + + NPR + + 0.01 + 4 + + + + + + 108.33 + + + + NIO + C$ + 0.01 + 4 + + + + + + 28.97 + + + + NGN + + 0.01 + 4 + + + + + + 196.77 + + + + KPW + + 0.01 + 4 + + + + + + 165.64 + + + + NOK + kr + 0.01 + 4 + + + + + + 7.47 + + + \ No newline at end of file From b74ecc5e3589f7723ed8f9f56568f894e060aef8 Mon Sep 17 00:00:00 2001 From: help <> Date: Wed, 18 Jul 2012 14:45:12 +0530 Subject: [PATCH 02/13] [IMP]base:added currency, currency rates and currency symbols of different countries bzr revid: help-20120718091512-cqp9m72xubyf2w2p --- openerp/addons/base/currency_data.xml | 727 +++++++++++++++++++++++++- 1 file changed, 725 insertions(+), 2 deletions(-) diff --git a/openerp/addons/base/currency_data.xml b/openerp/addons/base/currency_data.xml index 160749d3995..10052f94479 100644 --- a/openerp/addons/base/currency_data.xml +++ b/openerp/addons/base/currency_data.xml @@ -612,7 +612,6 @@ - CLP $ @@ -626,7 +625,6 @@ - UYU $ @@ -1653,5 +1651,730 @@ 7.47 + + + ZWD + Z$ + 0.01 + 4 + + + + + + 0.154336833379 + + + + ZMK + ZK + 0.01 + 4 + + + + + + 0.0113636364 + + + + YER + + 0.01 + 4 + + + + + + 0.255957635 + + + + MAD + د.م. + 0.01 + 4 + + + + + + 6.15583628 + + + + VND + + 0.01 + 4 + + + + + + 0.0026478376 + + + + VUB + Bs + 0.01 + 4 + + + + + + 1.69638129 + + + + EUR + + 0.01 + 4 + + + + + + 67.7680936 + + + + VUV + VT + 0.01 + 4 + + + + + + 0.5941 + + + + UZS + лв + 0.01 + 4 + + + + + + 0.0291262136 + + + + UYP + $U + 0.01 + 4 + + + + + + 0.000000 + + + + AED + د.إ + 0.01 + 4 + + + + + + 15.0189762 + + + + UAG + + 0.01 + 4 + + + + + + 6.81740953 + + + + UGS + USh + 0.01 + 4 + + + + + + 0.000000 + + + + GBP + USh + 0.01 + 4 + + + + + + 86.35812 + + + + AUD + $ + 0.01 + 4 + + + + + + 56.7795675 + + + + TMM + m + 0.01 + 4 + + + + + + 0.00313859649123 + + + + TRL + TL + 0.01 + 4 + + + + + + 0.000000 + + + + TND + DT + 0.01 + 4 + + + + + + 34.0661408 + + + + TTD + $ + 0.01 + 4 + + + + + + 8.61926302 + + + + TOP + PT,T$,¢ + 0.01 + 4 + + + + + + 31.1217 + + + + THB + ฿ + 0.01 + 4 + + + + + + 1.74052094 + + + + TZS + x/y + 0.01 + 4 + + + + + + 0.0346191889 + + + + TJR + 0.01 + 4 + + + + + + 0.000000 + + + + TWD + $ or NT$ + 0.01 + 4 + + + + + + 1.8341576 + + + + SYP + 0.01 + 4 + + + + + + 0.86162 + + + + CHF + Fr. + 0.01 + 4 + + + + + + 56.2737663 + + + + SEK + kr + 0.01 + 4 + + + + + + 7.84097154 + + + + SZL + E + 0.01 + 4 + + + + + + 6.7162 + + + + NOK + kr + 0.01 + 4 + + + + + + 9.02747555 + + + + SRG + $ + 0.01 + 4 + + + + + + 43.5566546 + + + + SDD + 0.01 + 4 + + + + + + 43.5566546 + + + + LKR + Rs + 0.01 + 4 + + + + + + 0.410704473 + + + + SSP + 0.01 + 4 + + + + + + 0.00000 + + + + GBP + £,p + 0.01 + 4 + + + + + + 85.8445983 + + + + ZAR + R + 0.01 + 4 + + + + + + 6.71485878 + + + + SOD + Sh. + 0.01 + 4 + + + + + + 0.0339 + + + + SBD + SI$ + 0.01 + 4 + + + + + + 7.80427 + + + + SLL + Le + 0.01 + 4 + + + + + + 0.0125838004 + + + + SCR + SR + 0.01 + 4 + + + + + + 3.723 + + + + RSD + din. + 0.01 + 4 + + + + + + 0.577920651 + + + + SAR + SR + 0.01 + 4 + + + + + + 14.6532586 + + + + + STD + Db + 0.01 + 4 + + + + + + 0.0028 + + + + ITL + + 0.01 + 4 + + + + + + 0.03 + + + + WST + WS$,SAT,ST + 0.01 + 4 + + + + + + 23.4662 + + + + SHP + £ + 0.01 + 4 + + + + + + 86.17 + + + + RWF + RF + 0.01 + 4 + + + + + + 0.0897 + + + + RUR + R + 0.01 + 4 + + + + + + 1.69666996 + + + + ROL + L + 0.01 + 4 + + + + + + 0.00148271 + + + + QAR + QR + 0.01 + 4 + + + + + + 15.0939664 + + + + PLZ + zł,gr + 0.01 + 4 + + + + + + 16.1412243 + + + + PEN + S/. + 0.01 + 4 + + + + + + 20.9297725 + + + + PYG + 0.01 + 4 + + + + + + 0.0121991428 + + + + PGK + K + 0.01 + 4 + + + + + + 25.827014 + + + + PAB + B./ + 0.01 + 4 + + + + + + 49.1639 + + + + PKR + Rs. + 0.01 + 4 + + + + + + 0.582096934 + + + + OMR + ر.ع. + 0.01 + 4 + + + + + + 142.733817 + + \ No newline at end of file From 4ba54111096b3328495c295623d6c141211bf438 Mon Sep 17 00:00:00 2001 From: help <> Date: Thu, 19 Jul 2012 12:25:04 +0530 Subject: [PATCH 03/13] [IMP]base:improved currency rates of different countries bzr revid: help-20120719065504-yl42d4ildnjcmumd --- openerp/addons/base/currency_data.xml | 216 +++++++++++++++----------- 1 file changed, 125 insertions(+), 91 deletions(-) diff --git a/openerp/addons/base/currency_data.xml b/openerp/addons/base/currency_data.xml index 10052f94479..179e7826957 100644 --- a/openerp/addons/base/currency_data.xml +++ b/openerp/addons/base/currency_data.xml @@ -640,7 +640,7 @@ AFN - Afghani + Af,Afs 0.01 4 @@ -926,7 +926,7 @@ CDF - FC + Fr 0.01 4 @@ -1002,9 +1002,9 @@ 48.09 + TPE - $ 0.01 4 @@ -1017,7 +1017,7 @@ ECS - $ + S/. 0.01 4 @@ -1025,7 +1025,7 @@ - 0.00 + 30,707.5 @@ -1155,7 +1155,7 @@ - 10.27 + 0.0000 @@ -1168,7 +1168,7 @@ - 0.786 + 0.00000 @@ -1186,7 +1186,6 @@ GWP - CFA 0.01 4 @@ -1194,7 +1193,7 @@ - 657.89 + 0.000000 @@ -1303,7 +1302,7 @@ KZT - Т + лв 0.01 4 @@ -1316,7 +1315,7 @@ KES - Sh + KSh 0.01 4 @@ -1342,7 +1341,7 @@ KGS - KGS + лв 0.01 4 @@ -1366,19 +1365,6 @@ 9847.72 - - LAK - - 0.01 - 4 - - - - - - 9847.72 - - LBP ل.ل @@ -1407,7 +1393,7 @@ LRD - $ + L$ 0.01 4 @@ -1433,7 +1419,7 @@ MOP - P + MOP$ 0.01 4 @@ -1459,7 +1445,6 @@ MGA - MGA 0.01 4 @@ -1484,8 +1469,8 @@ - MVK - ރ. + MVR + 0.01 4 @@ -1545,12 +1530,12 @@ - 10.99 + 10.9962499 MZN - MZN + MT 0.01 4 @@ -1636,7 +1621,7 @@ - 165.64 + 1105.24376765 @@ -1662,7 +1647,7 @@ - 0.154336833379 + 460.93 @@ -1675,7 +1660,7 @@ - 0.0113636364 + 6022.54902 @@ -1688,20 +1673,7 @@ - 0.255957635 - - - - MAD - د.م. - 0.01 - 4 - - - - - - 6.15583628 + 264.784483 @@ -1714,7 +1686,7 @@ - 0.0026478376 + 25595.8333 @@ -1727,7 +1699,7 @@ - 1.69638129 + 0.00000 @@ -1740,7 +1712,7 @@ - 67.7680936 + 1.0 @@ -1753,7 +1725,7 @@ - 0.5941 + 114.024315363 @@ -1766,7 +1738,7 @@ - 0.0291262136 + 2331.3093 @@ -1792,7 +1764,7 @@ - 15.0189762 + 4.51253195 @@ -1805,7 +1777,7 @@ - 6.81740953 + 0.000000 @@ -1935,7 +1907,7 @@ - 0.0346191889 + 1947.06815 @@ -1960,7 +1932,7 @@ - 1.8341576 + 36.8329536 @@ -1972,7 +1944,7 @@ - 0.86162 + 78.8338 @@ -1985,7 +1957,7 @@ - 56.2737663 + 1.20095404 @@ -1998,7 +1970,7 @@ - 7.84097154 + 8.52206122 @@ -2011,7 +1983,7 @@ - 6.7162 + 10.07 @@ -2024,7 +1996,7 @@ - 9.02747555 + 7.47900598 @@ -2037,7 +2009,7 @@ - 43.5566546 + 3,980.29 @@ -2049,7 +2021,7 @@ - 43.5566546 + 544.44 @@ -2062,7 +2034,7 @@ - 0.410704473 + 163.552526 @@ -2087,7 +2059,7 @@ - 85.8445983 + 0.784221994 @@ -2100,7 +2072,7 @@ - 6.71485878 + 10.0171906 @@ -2113,7 +2085,7 @@ - 0.0339 + 0.00000 @@ -2126,7 +2098,7 @@ - 7.80427 + 8.6605 @@ -2139,7 +2111,7 @@ - 0.0125838004 + 5320.43478 @@ -2152,7 +2124,7 @@ - 3.723 + 18.2587287 @@ -2165,7 +2137,7 @@ - 0.577920651 + 117.381295 @@ -2178,10 +2150,9 @@ - 14.6532586 + 4.58898972 - STD Db @@ -2192,7 +2163,7 @@ - 0.0028 + 24,105.86 @@ -2205,7 +2176,7 @@ - 0.03 + 1,936.27 @@ -2218,7 +2189,7 @@ - 23.4662 + 2.8628 @@ -2231,7 +2202,7 @@ - 86.17 + 0.7856 @@ -2244,7 +2215,7 @@ - 0.0897 + 752.57 @@ -2257,7 +2228,7 @@ - 1.69666996 + 39.6622695 @@ -2270,7 +2241,7 @@ - 0.00148271 + 45,638.59 @@ -2283,7 +2254,7 @@ - 15.0939664 + 4.45500218 @@ -2296,7 +2267,7 @@ - 16.1412243 + 4.17281888 @@ -2309,7 +2280,7 @@ - 20.9297725 + 3.20731573 @@ -2321,7 +2292,7 @@ - 0.0121991428 + 5343.66812 @@ -2334,7 +2305,7 @@ - 25.827014 + 2.5903895 @@ -2347,7 +2318,7 @@ - 49.1639 + 1.2234 @@ -2360,7 +2331,7 @@ - 0.582096934 + 115.97432 @@ -2373,8 +2344,71 @@ - 142.733817 - + 0.472921728 + + + + CVE + $,Esc + 0.01 + 4 + + + + + + 0.61 + + + + SKK + Sk + 0.01 + 4 + + + + + + 30.1263029 + + + + SIT + 0.01 + 4 + + + + + + 239.64 + + + + YUM + din.,дин. + 0.01 + 4 + + + + + + 0.00000 + + + + ZRN + 0.01 + 4 + + + + + + 1128220.81 + \ No newline at end of file From 38d732573ff328955d61374c96f8ff499766816e Mon Sep 17 00:00:00 2001 From: Hardik Date: Thu, 19 Jul 2012 14:47:07 +0530 Subject: [PATCH 04/13] [IMP]country currency rate is changed bzr revid: hsa@tinyerp.com-20120719091707-gi9czlsqw9s8co0o --- openerp/addons/base/currency_data.xml | 62 ++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 5 deletions(-) diff --git a/openerp/addons/base/currency_data.xml b/openerp/addons/base/currency_data.xml index 9e0b224f6b1..7ffad588aae 100644 --- a/openerp/addons/base/currency_data.xml +++ b/openerp/addons/base/currency_data.xml @@ -1025,7 +1025,7 @@ - 30,707.5 + 30707.5 @@ -1546,6 +1546,58 @@ 1.54 + + DZD + DZ + 0.01 + 4 + + + + + + 99.65 + + + + GHS + GH¢ + 0.01 + 4 + + + + + + 2.39 + + + + GMD + D + 0.01 + 4 + + + + + + 38.89 + + + + ZRZ + Ƶ + 0.01 + 4 + + + + + + 0.000000 + + MZN MT @@ -2035,7 +2087,7 @@ - 3,980.29 + 3980.29 @@ -2189,7 +2241,7 @@ - 24,105.86 + 24105.86 @@ -2202,7 +2254,7 @@ - 1,936.27 + 1936.27 @@ -2267,7 +2319,7 @@ - 45,638.59 + 45638.59 From 6f87b8efcd202fb99ed96bb9a97ed4dd4941a1e7 Mon Sep 17 00:00:00 2001 From: Hardik Date: Fri, 20 Jul 2012 11:36:56 +0530 Subject: [PATCH 05/13] [IMP]add field currency_id in res_country bzr revid: hsa@tinyerp.com-20120720060656-wbdj7fx46oskxbe0 --- openerp/addons/base/res/res_country.py | 2 +- openerp/addons/base/res/res_country_view.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openerp/addons/base/res/res_country.py b/openerp/addons/base/res/res_country.py index bbd469bd6b7..002a86896eb 100644 --- a/openerp/addons/base/res/res_country.py +++ b/openerp/addons/base/res/res_country.py @@ -55,7 +55,7 @@ addresses belonging to this country.\n\nYou can use the python-style string pate \n%(state_code)s: the code of the state \n%(country_name)s: the name of the country \n%(country_code)s: the code of the country"""), - 'currency':fields.many2one('res.currency','Currency Code'), + 'currency_id':fields.many2one('res.currency','Currency Code'), } _sql_constraints = [ ('name_uniq', 'unique (name)', diff --git a/openerp/addons/base/res/res_country_view.xml b/openerp/addons/base/res/res_country_view.xml index ca4440a616d..06ebd73637f 100644 --- a/openerp/addons/base/res/res_country_view.xml +++ b/openerp/addons/base/res/res_country_view.xml @@ -27,7 +27,7 @@ - + From af91896fbdef9aee12826fad879945289f18ad14 Mon Sep 17 00:00:00 2001 From: Hardik Date: Mon, 23 Jul 2012 17:02:40 +0530 Subject: [PATCH 06/13] [IMP]view improved for country form and change label name of currency field bzr revid: hsa@tinyerp.com-20120723113240-mopd8ufl80705o6m --- openerp/addons/base/res/res_country.py | 2 +- openerp/addons/base/res/res_country_view.xml | 3 ++- openerp/addons/base/res/res_currency.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/openerp/addons/base/res/res_country.py b/openerp/addons/base/res/res_country.py index 002a86896eb..f1321605e5f 100644 --- a/openerp/addons/base/res/res_country.py +++ b/openerp/addons/base/res/res_country.py @@ -55,7 +55,7 @@ addresses belonging to this country.\n\nYou can use the python-style string pate \n%(state_code)s: the code of the state \n%(country_name)s: the name of the country \n%(country_code)s: the code of the country"""), - 'currency_id':fields.many2one('res.currency','Currency Code'), + 'currency_id': fields.many2one('res.currency', 'Currency'), } _sql_constraints = [ ('name_uniq', 'unique (name)', diff --git a/openerp/addons/base/res/res_country_view.xml b/openerp/addons/base/res/res_country_view.xml index 06ebd73637f..896f731ea56 100644 --- a/openerp/addons/base/res/res_country_view.xml +++ b/openerp/addons/base/res/res_country_view.xml @@ -28,12 +28,13 @@ - + diff --git a/openerp/addons/base/res/res_currency.py b/openerp/addons/base/res/res_currency.py index ac8ce1758cf..d8053c39c4a 100644 --- a/openerp/addons/base/res/res_currency.py +++ b/openerp/addons/base/res/res_currency.py @@ -56,7 +56,7 @@ class res_currency(osv.osv): _columns = { # Note: 'code' column was removed as of v6.0, the 'name' should now hold the ISO code. 'name': fields.char('Currency', size=32, required=True, help="Currency Code (ISO 4217)"), - 'symbol': fields.char('Symbol', size=3, help="Currency sign, to be used when printing amounts."), + 'symbol': fields.char('Symbol', size=4, help="Currency sign, to be used when printing amounts."), 'rate': fields.function(_current_rate, string='Current Rate', digits=(12,6), help='The rate of the currency to the currency of rate 1.'), 'rate_ids': fields.one2many('res.currency.rate', 'currency_id', 'Rates'), From f9638a71321531e2af62ccb81df39d92a59c9c24 Mon Sep 17 00:00:00 2001 From: "Saurang Suthar(OpenERP)" <> Date: Thu, 26 Jul 2012 16:17:44 +0530 Subject: [PATCH 07/13] [IMP] base: Improved currency and country data bzr revid: pso@tinyerp.com-20120726104744-uhr0q3aq3g5r07i4 --- openerp/addons/base/country_data.xml | 3 +- openerp/addons/base/currency_data.xml | 215 +++----------------------- 2 files changed, 21 insertions(+), 197 deletions(-) diff --git a/openerp/addons/base/country_data.xml b/openerp/addons/base/country_data.xml index aa5729ae917..13df5ff5a8f 100644 --- a/openerp/addons/base/country_data.xml +++ b/openerp/addons/base/country_data.xml @@ -1166,10 +1166,11 @@ ua + Uganda ug - + United Kingdom diff --git a/openerp/addons/base/currency_data.xml b/openerp/addons/base/currency_data.xml index 7ffad588aae..2fad6810285 100644 --- a/openerp/addons/base/currency_data.xml +++ b/openerp/addons/base/currency_data.xml @@ -171,7 +171,6 @@ - NOK kr @@ -237,19 +236,6 @@ - - GBP - £ - 0.01 - 4 - - - - 0.8333 - - - - ARS $ @@ -497,19 +483,6 @@ - - THB - ฿ - 0.01 - 4 - - - - 47.779 - - - - ZAR R @@ -640,7 +613,7 @@ AFN - Af,Afs + Afs 0.01 4 @@ -705,7 +678,7 @@ AZN - m , man. + m 0.01 4 @@ -744,7 +717,7 @@ BDT - + 0.01 4 @@ -859,19 +832,6 @@ 9.45 - - BGN - lev - 0.01 - 4 - - - - - - 1.95 - - BIF FBu @@ -1263,7 +1223,7 @@ ILS - + 0.01 4 @@ -1445,6 +1405,7 @@ MGA + Ar 0.01 4 @@ -1509,7 +1470,7 @@ MNT - + 0.01 4 @@ -1613,7 +1574,7 @@ MMK - K + K 0.01 4 @@ -1701,19 +1662,6 @@ 1105.24376765 - - - NOK - kr - 0.01 - 4 - - - - - - 7.47 - ZWD @@ -1754,19 +1702,6 @@ 264.784483 - - VND - - 0.01 - 4 - - - - - - 25595.8333 - - VUB Bs @@ -1858,45 +1793,6 @@ 0.000000 - - UGS - USh - 0.01 - 4 - - - - - - 0.000000 - - - - GBP - USh - 0.01 - 4 - - - - - - 86.35812 - - - - AUD - $ - 0.01 - 4 - - - - - - 56.7795675 - - TMM m @@ -1951,7 +1847,7 @@ TOP - PT,T$,¢ + T$ 0.01 4 @@ -1972,7 +1868,7 @@ - 1.74052094 + 38.4070124 @@ -2002,7 +1898,7 @@ TWD - $ or NT$ + NT$ 0.01 4 @@ -2015,6 +1911,7 @@ SYP + £ 0.01 4 @@ -2025,32 +1922,6 @@ 78.8338 - - CHF - Fr. - 0.01 - 4 - - - - - - 1.20095404 - - - - SEK - kr - 0.01 - 4 - - - - - - 8.52206122 - - SZL E @@ -2064,19 +1935,6 @@ 10.07 - - NOK - kr - 0.01 - 4 - - - - - - 7.47900598 - - SRG $ @@ -2092,6 +1950,7 @@ SDD + £Sd 0.01 4 @@ -2117,6 +1976,7 @@ SSP + £ 0.01 4 @@ -2129,7 +1989,7 @@ GBP - £,p + £ 0.01 4 @@ -2140,19 +2000,6 @@ 0.784221994 - - ZAR - R - 0.01 - 4 - - - - - - 10.0171906 - - SOD Sh. @@ -2259,7 +2106,7 @@ WST - WS$,SAT,ST + WS$ 0.01 4 @@ -2337,7 +2184,7 @@ PLZ - zł,gr + 0.01 4 @@ -2363,6 +2210,7 @@ PYG + 0.01 4 @@ -2386,19 +2234,6 @@ 2.5903895 - - PAB - B./ - 0.01 - 4 - - - - - - 1.2234 - - PKR Rs. @@ -2427,7 +2262,7 @@ CVE - $,Esc + $ 0.01 4 @@ -2465,7 +2300,7 @@ YUM - din.,дин. + дин. 0.01 4 @@ -2475,18 +2310,6 @@ 0.00000 - - - ZRN - 0.01 - 4 - - - - - - 1128220.81 - \ No newline at end of file From e223851436cffd5ae521420f17506822d7157c45 Mon Sep 17 00:00:00 2001 From: "pso (OpenERP)" Date: Fri, 27 Jul 2012 15:10:51 +0530 Subject: [PATCH 08/13] [IMP] base: Improved _get_euro method to fetch correct default value of currency bzr revid: pso@tinyerp.com-20120727094051-9oss7x3acsl79j3s --- openerp/addons/base/res/res_company.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openerp/addons/base/res/res_company.py b/openerp/addons/base/res/res_company.py index 54835258283..4815721c758 100644 --- a/openerp/addons/base/res/res_company.py +++ b/openerp/addons/base/res/res_company.py @@ -230,7 +230,9 @@ class res_company(osv.osv): def _get_euro(self, cr, uid, context=None): try: - return self.pool.get('res.currency').search(cr, uid, [])[0] + data_obj = self.pool.get('ir.model.data') + data_id = data_obj._get_id(cr, uid, 'base', 'EUR') + return data_obj.browse(cr, uid, data_id, context=context).res_id except: return False From 1756ab23edc80fe4b49cfdb5a26a048da4ee9847 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Tue, 7 Aug 2012 15:42:04 +0530 Subject: [PATCH 09/13] [ADD] added onchange on country_id bzr revid: bde@tinyerp.com-20120807101204-s7feg9o31fzodfty --- openerp/addons/base/res/res_company.py | 9 ++++++++- openerp/addons/base/res/res_company_view.xml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/openerp/addons/base/res/res_company.py b/openerp/addons/base/res/res_company.py index 4815721c758..4f65a91acc2 100644 --- a/openerp/addons/base/res/res_company.py +++ b/openerp/addons/base/res/res_company.py @@ -145,7 +145,14 @@ class res_company(osv.osv): if vat: val.append(_('VAT: ')+vat) if reg: val.append(_('Reg: ')+reg) return {'value': {'rml_footer1':' | '.join(val)}} - + + def on_change_country(self, cr, uid, ids, country_id, context=None): + res_country_obj = self.pool.get('res.country') + if not country_id: + default_currency_id = self._get_euro(cr, uid, context=context) + return {'value': {'currency_id': default_currency_id}} + currency_id = res_country_obj.browse(cr, uid, country_id, context=context).currency_id.id + return {'value': {'currency_id': currency_id}} def _search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False, access_rights_uid=None): diff --git a/openerp/addons/base/res/res_company_view.xml b/openerp/addons/base/res/res_company_view.xml index c3e2501ccbb..29312fbf782 100644 --- a/openerp/addons/base/res/res_company_view.xml +++ b/openerp/addons/base/res/res_company_view.xml @@ -54,7 +54,7 @@ - + From ff28513b150301476812f054c8f910563b8524e4 Mon Sep 17 00:00:00 2001 From: "pso (OpenERP)" Date: Mon, 20 Aug 2012 13:01:45 +0530 Subject: [PATCH 10/13] [IMP] Improved default method to fetch correct currency in company object bzr revid: pso@tinyerp.com-20120820073145-fac3kt31u6qemzgu --- openerp/addons/base/res/res_company.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/openerp/addons/base/res/res_company.py b/openerp/addons/base/res/res_company.py index 7bc3245e723..ec3550c09b9 100644 --- a/openerp/addons/base/res/res_company.py +++ b/openerp/addons/base/res/res_company.py @@ -232,12 +232,9 @@ class res_company(osv.osv): return super(res_company, self).write(cr, *args, **argv) def _get_euro(self, cr, uid, context=None): - try: - data_obj = self.pool.get('ir.model.data') - data_id = data_obj._get_id(cr, uid, 'base', 'EUR') - return data_obj.browse(cr, uid, data_id, context=context).res_id - except: - return False + rate_obj = self.pool.get('res.currency.rate') + rate_id = rate_obj.search(cr, uid, [('rate', '=', 1)], context=context) + return rate_id and rate_obj.browse(cr, uid, rate_id[0], context=context).currency_id.id or False def _get_logo(self, cr, uid, ids): return open(os.path.join( tools.config['root_path'], 'addons', 'base', 'res', 'res_company_logo.png'), 'rb') .read().encode('base64') From c53a15ef83469641ff1687d21acef8ee64764bbc Mon Sep 17 00:00:00 2001 From: "Hardik Sanchawat (OpenERP)" <> Date: Fri, 24 Aug 2012 18:10:13 +0530 Subject: [PATCH 11/13] [IMP] Improved rate of currencies bzr revid: pso@tinyerp.com-20120824124013-d81zzicddughxs13 --- openerp/addons/base/country_data.xml | 4 +-- openerp/addons/base/currency_data.xml | 45 ++++++++++----------------- 2 files changed, 18 insertions(+), 31 deletions(-) diff --git a/openerp/addons/base/country_data.xml b/openerp/addons/base/country_data.xml index 13df5ff5a8f..9c74c23f555 100644 --- a/openerp/addons/base/country_data.xml +++ b/openerp/addons/base/country_data.xml @@ -462,7 +462,7 @@ Guatemala gt - + Guam (USA) @@ -1281,4 +1281,4 @@ - \ No newline at end of file + diff --git a/openerp/addons/base/currency_data.xml b/openerp/addons/base/currency_data.xml index 393049ad2cf..53cc9f179df 100644 --- a/openerp/addons/base/currency_data.xml +++ b/openerp/addons/base/currency_data.xml @@ -969,7 +969,7 @@ - 0.00 + 1.2535 @@ -1102,30 +1102,17 @@ 0.786 - - QTQ + + GTQ Q 0.01 4 - - + + - 0.0000 - - - - GGP - £ - 0.01 - 4 - - - - - - 0.00000 + 9.8827 @@ -1150,7 +1137,7 @@ - 0.000000 + 659.30 @@ -1553,7 +1540,7 @@ - 0.000000 + 1148948.76 @@ -1709,7 +1696,7 @@ - 0.00000 + 5.3821 @@ -1761,7 +1748,7 @@ - 0.000000 + 26.91 @@ -1787,7 +1774,7 @@ - 0.000000 + 10.17 @@ -1813,7 +1800,7 @@ - 0.000000 + 2.255 @@ -1890,7 +1877,7 @@ - 0.000000 + 5.95 @@ -1981,7 +1968,7 @@ - 0.00000 + 5.528 @@ -2007,7 +1994,7 @@ - 0.00000 + 1,993.71 @@ -2305,7 +2292,7 @@ - 0.00000 + 1.96 From 844ba62cf97950f81d695b23d70b83d8a4fecc70 Mon Sep 17 00:00:00 2001 From: "pso (OpenERP)" Date: Fri, 24 Aug 2012 18:56:39 +0530 Subject: [PATCH 12/13] [IMP] Improvements bzr revid: pso@tinyerp.com-20120824132639-ny81h7vo813i2ilb --- openerp/addons/base/currency_data.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/addons/base/currency_data.xml b/openerp/addons/base/currency_data.xml index 53cc9f179df..4cb3f1773b5 100644 --- a/openerp/addons/base/currency_data.xml +++ b/openerp/addons/base/currency_data.xml @@ -1994,7 +1994,7 @@ - 1,993.71 + 1993.71 From d70bbbe87a6904cece564d1fec286687c95e8095 Mon Sep 17 00:00:00 2001 From: "pso (OpenERP)" Date: Mon, 27 Aug 2012 18:32:30 +0530 Subject: [PATCH 13/13] [IMP] Renamed ID of currencies bzr revid: pso@tinyerp.com-20120827130230-zw8ka90mhj4y1uie --- openerp/addons/base/country_data.xml | 2 +- openerp/addons/base/currency_data.xml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openerp/addons/base/country_data.xml b/openerp/addons/base/country_data.xml index 9c74c23f555..5731b37f382 100644 --- a/openerp/addons/base/country_data.xml +++ b/openerp/addons/base/country_data.xml @@ -462,7 +462,7 @@ Guatemala gt - + Guam (USA) diff --git a/openerp/addons/base/currency_data.xml b/openerp/addons/base/currency_data.xml index 4cb3f1773b5..11a83404b02 100644 --- a/openerp/addons/base/currency_data.xml +++ b/openerp/addons/base/currency_data.xml @@ -1102,15 +1102,15 @@ 0.786 - - GTQ + + QTQ Q 0.01 4 - - + + 9.8827