mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
93 lines
3.8 KiB
Python
Executable File
93 lines
3.8 KiB
Python
Executable File
##############################################################################
|
|
#
|
|
# Copyright (c) 2008 Camtocamp SA
|
|
# @author JB Aubort, Nicolas Bessi, Joel Grand-Guillaume
|
|
# European Central Bank and Polish National Bank invented by Grzegorz Grzelak
|
|
# $Id: $
|
|
#
|
|
# WARNING: This program as such is intended to be used by professional
|
|
# programmers who take the whole responsability of assessing all potential
|
|
# consequences resulting from its eventual inadequacies and bugs
|
|
# End users who are looking for a ready-to-use solution with commercial
|
|
# garantees and support are strongly adviced to contract a Free Software
|
|
# Service Company
|
|
#
|
|
# This program is Free Software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# 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 General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
#
|
|
##############################################################################
|
|
{
|
|
"name" : "Currency Rate Update",
|
|
"version" : "0.6",
|
|
"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).
|
|
|
|
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
|
|
"init_xml" : ["security/security.xml"],
|
|
"update_xml" : [
|
|
"currency_rate_update.xml",
|
|
"company_view.xml",
|
|
],
|
|
"demo_xml" : [],
|
|
"active": False,
|
|
"installable": True
|
|
}
|