From 6291a7871a9348bde029a3aa08c161f7fdfe0d9e Mon Sep 17 00:00:00 2001 From: Fekete Mihai Date: Mon, 10 Nov 2014 12:42:32 +0200 Subject: [PATCH] Add readme.md, cron data for services, modify declaration of views. --- currency_rate_update/README.md | 60 +++++++++++++++++ currency_rate_update/__openerp__.py | 67 ++----------------- .../view/service_cron_data.xml | 16 +++++ 3 files changed, 81 insertions(+), 62 deletions(-) create mode 100644 currency_rate_update/README.md create mode 100644 currency_rate_update/view/service_cron_data.xml diff --git a/currency_rate_update/README.md b/currency_rate_update/README.md new file mode 100644 index 000000000..e119d916f --- /dev/null +++ b/currency_rate_update/README.md @@ -0,0 +1,60 @@ +Import exchange rates from the Internet. + +The module is able to use 4 different sources: + +1. Admin.ch + Updated daily, source in CHF. + +2. European Central Bank (ported by Grzegorz Grzelak) + The reference rates are based on the regular daily concertation + procedure between central banks within and outside the European + System of Central Banks, which normally takes place at 2.15 p.m. + (14:15) ECB time. Source in EUR. + http://www.ecb.europa.eu/stats/exchange/eurofxref/html/index.en.html + +3. Yahoo Finance + Updated daily + +4. Polish National Bank (Narodowy Bank Polski) + Takes official rates from www.nbp.pl. Adds rate table symbol in log. + You should check when rates should apply to bookkeeping. + If next day you should change the update hour in schedule settings + because in OpenERP they apply from date of update (date - no hours). + +5. Banxico for USD & MXN (created by Agustín Cruz) + Updated daily + +6. Bank of Canada + +7. National Bank of Romania (Banca Nationala a Romaniei) + +In the roadmap : Google Finance. + Updated daily from Citibank N.A., source in EUR. Information may be delayed. + This is parsed from an HTML page, so it may be broken at anytime. + +The update can be set under the company form. +You can set for each services which currency you want to update. +The logs of the update are visible under the service note. +You can active or deactivate the update. +The module uses internal ir-cron feature from OpenERP, so the job is +launched once the server starts if the 'first execute date' is before +the current day. +The module supports multi-company currency in two ways: + +* the currencies are shared, you can set currency update only on one + company +* the currency are separated, you can set currency on every company + separately + +A function field lets you know your currency configuration. + +If in multi-company mode, the base currency will be the first company's +currency found in database. + +Thanks to main contributors: +* Grzegorz Grzelak - grzegorz.grzelak@birdglobe.com (ECB, NBP) +* Alexis de Lattre - alexis@via.ecp.fr +* Joel Grand-Guillaume +* Lorenzo Battistini - lorenzo.battistini@agilebg.com (Port to V7) +* Agustin Cruz - openpyme.mx (BdM) +* Dorin Hongu - dhongu@gmail.com (BNR) diff --git a/currency_rate_update/__openerp__.py b/currency_rate_update/__openerp__.py index 1294a3f80..618b5977f 100644 --- a/currency_rate_update/__openerp__.py +++ b/currency_rate_update/__openerp__.py @@ -1,12 +1,8 @@ # -*- coding: utf-8 -*- ############################################################################## # -# Copyright (c) 2008 Camtocamp SA -# @author JB Aubort, Nicolas Bessi, Joel Grand-Guillaume -# European Central Bank and Polish National Bank by Grzegorz Grzelak -# Ported to OpenERP 7.0 by Lorenzo Battistini -# -# Banxico implemented by Agustin Cruz openpyme.mx +# Copyright (c) 2009 CamptoCamp. All rights reserved. +# @author Nicolas Bessi # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -28,67 +24,14 @@ "author": "Camptocamp", "website": "http://camptocamp.com", "category": "Financial Management/Configuration", - "description": """Import exchange rates from the Internet. - -The module is able to use 4 different sources: - -1. Admin.ch - Updated daily, source in CHF. - -2. European Central Bank (ported by Grzegorz Grzelak) - The reference rates are based on the regular - daily concertation procedure between - central banks within and outside the European System of Central Banks, - which normally takes place at 2.15 p.m. (14:15) ECB time. Source in EUR. - http://www.ecb.europa.eu/stats/exchange/eurofxref/html/index.en.html - -3. Yahoo Finance - Updated daily - -4. Polish National Bank (Narodowy Bank Polski) - (contribution by Grzegorz Grzelak) - Takes official rates from www.nbp.pl. Adds rate table symbol in log. - You should check when rates should apply to bookkeeping. - If next day you should change the update hour in schedule settings - because in OpenERP they apply from - date of update (date - no hours). - -5. Banxico for USD & MXN (created by Agustín Cruz) - Updated daily - -In the roadmap : Google Finance. - Updated daily from Citibank N.A., source in EUR. Information may be delayed. - This is parsed from an HTML page, so it may be broken at anytime. - -The update can be set under the company form. -You can set for each services which currency you want to update. -The logs of the update are visible under the service note. -You can active or deactivate the update. -The module uses internal ir_cron feature from OpenERP, -so the job is launched once -the server starts if the 'first execute date' is before the current day. -The module supports multi-company currency in two ways: - -* the currencies are shared, you can set currency update only on one - company -* the currency are separated, you can set currency on every company - separately - -A function field lets you know your currency configuration. - -If in multi-company mode, the base currency will -be the first company's currency -found in database. - -Thanks to main contributors: Grzegorz Grzelak, Alexis de Lattre -""", "depends": [ "base", "account", # Added to ensure account security groups are present ], "data": [ - "currency_rate_update.xml", - "company_view.xml", + "view/service_cron_data.xml", + "view/currency_rate_update.xml", + "view/company_view.xml", "security/security.xml", ], "demo": [], diff --git a/currency_rate_update/view/service_cron_data.xml b/currency_rate_update/view/service_cron_data.xml new file mode 100644 index 000000000..cfc640849 --- /dev/null +++ b/currency_rate_update/view/service_cron_data.xml @@ -0,0 +1,16 @@ + + + + + Currency Rate Update + 1 + days + -1 + + + + (None,) + + + +