[FIX] 3 improvements suggested by Olivier Dony.1currency management - 2copyrigth fix - 3precise covered countries

bzr revid: tsy@baamtu.com-20110411152503-mcaropfxxdpla2fs
This commit is contained in:
Tidiane Sy (Baamtu) 2011-04-11 17:25:03 +02:00
parent 59c591d874
commit 8d02d91e37
3 changed files with 238 additions and 262 deletions

View File

@ -1,21 +1,20 @@
# -*- encoding: utf-8 -*- # -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (C) 2010-2011 BAAMTU SARL (<http://www.baamtu.sn>). All Rights Reserved # Copyright (C) 2010-2011 BAAMTU SARL (<http://www.baamtu.sn>).
# $Id$
# contact: leadsn@baamtu.com # contact: leadsn@baamtu.com
# #
# This program is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU Affero General Public License as
# the Free Software Foundation, either version 3 of the License, or # published by the Free Software Foundation, either version 3 of the
# (at your option) any later version. # License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU Affero General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################## ##############################################################################

View File

@ -1,39 +0,0 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2010-2011 BAAMTU SARL (<http://www.baamtu.sn>). All Rights Reserved
# $Id$
# contact: leadsn@baamtu.com
#
# 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 3 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, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
"name" : "OHADA - The accounting chart ",
"version" : "1.0",
"author" : "Baamtu Senegal",
"category" : "Localisation/Account Charts",
"description": """This module implements the accounting chart for OHADA area.
It allows any company or association to manage its financial accounting.
""",
"website": "http://www.baamtu.com",
"depends" : ["account", "base_vat"],
"demo_xml" : [],
"init_xml":[],
"update_xml" : ["l10n_syscohada_data.xml","l10n_syscohada_wizard.xml"],
"active": False,
"installable": True
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<openerp> <openerp>
<data noupdate="0"> <data noupdate="0">
<record id="account_type_dettes" model="account.account.type"> <record id="account_type_dettes" model="account.account.type">
@ -1803,12 +1803,28 @@
# #
--> -->
<record model="res.currency" id="CFA"> <record id="base.CFA" model="res.currency">
<field name="name">CFA</field> <!-- There are in fact 2 CFA currencies:
<field name="code">CFA</field> - XAF for the Central African CFA franc
<field name="rate">1.0</field> - XOF for the West African CFA franc
As they are interchangeable, we probably only need one.
XOF appears to have "CFA" as symbol, while "XAF" is "FCFA",
so let's pick XOF as the ISO Code, to have a code-symbol match.
We can keep CFA as XML ID to show that we only have one currency,
there is no possible conflict, as no other currency currently
has CFA as ISO Code.
See http://en.wikipedia.org/wiki/CFA_franc
http://en.wikipedia.org/wiki/ISO_4217
-->
<field name="name">XOF</field>
<field name="symbol">CFA</field>
<field name="rounding">1</field> <field name="rounding">1</field>
<field name="accuracy">4</field> <field name="accuracy">4</field>
</record>
<record id="base.rateCFA" model="res.currency.rate">
<field name="rate">655.957</field>
<field name="currency_id" ref="base.CFA"/>
<field eval="time.strftime('%Y-01-01')" name="name"/>
</record> </record>
<!-- <!--
# #