Add readme.md, cron data for services, modify declaration of views.

This commit is contained in:
Fekete Mihai
2014-11-10 12:42:32 +02:00
parent b3f786b36a
commit 6291a7871a
3 changed files with 81 additions and 62 deletions

View File

@@ -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)

View File

@@ -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
# <lorenzo.battistini@agilebg.com>
# 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": [],

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" ?>
<openerp>
<data>
<record model="ir.cron" id="ir_cron_currency_update_every_day">
<field name="name">Currency Rate Update</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field><!-- it s every day -->
<field name="numbercall">-1</field>
<field name="doall" eval="False"/>
<field name="model" eval="'currency.rate.update.service'"/>
<field name="function" eval="'_run_currency_update'"/>
<field name="args">(None,)</field>
</record>
</data>
</openerp>