Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
108 changed files
with
35,750 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
========================= | ||
Multicurrency revaluation | ||
========================= | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--closing-lightgray.png?logo=github | ||
:target: https://github.com/OCA/account-closing/tree/12.0/account_multicurrency_revaluation | ||
:alt: OCA/account-closing | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/account-closing-12-0/account-closing-12-0-account_multicurrency_revaluation | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/89/12.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module was written to extend the functionality of the accounting module to | ||
support the multicurrency and to allow you to generate automatically | ||
revaluation journal entries. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Installation | ||
============ | ||
|
||
To install this module, you need to: | ||
|
||
* clone the branch 11.0 of the repository https://github.com/OCA/account-closing | ||
* add the path to this repository in your configuration (addons-path) | ||
* update the module list | ||
* search for "Multicurrency revaluation" in your addons | ||
* install the module | ||
|
||
Configuration | ||
============= | ||
|
||
Due to the various legislation according the country, in the Accounting settings | ||
you can set the way you want to generate revaluation journal entries. | ||
|
||
The user that can access to the edition of the 'Provision B.S loss account' and | ||
'Provision P&L accounts' need to be in the security group | ||
'Additional provisioning entries posting'. | ||
|
||
You also need to tick the box "Allow multi currencies" in the menu Settings/ | ||
Configuration/ Invoicing to be able to select the currency on the account you | ||
want to revaluate. | ||
|
||
Please, find below advised account settings for 3 countries: | ||
|
||
For UK (Revaluation) | ||
~~~~~~~~~~~~~~~~~~~~ | ||
(l10n_uk Chart of account) | ||
|
||
:: | ||
|
||
LOSS GAIN | ||
Revaluation account [7700] [7700] | ||
Provision B.S account [ ] [ ] | ||
Provision P&L account [ ] [ ] | ||
|
||
For CH (Provision) | ||
~~~~~~~~~~~~~~~~~~ | ||
(l10n_ch Chart of account) | ||
|
||
:: | ||
|
||
LOSS GAIN | ||
Revaluation account [ ] [ ] | ||
Provision B.S account [2331] [2331] | ||
Provision P&L account [3906] [4906] | ||
|
||
For FR | ||
~~~~~~ | ||
(l10n_fr Chart of account) | ||
|
||
:: | ||
|
||
LOSS GAIN | ||
Revaluation account [ 476] [ 477] | ||
Provision B.S account [1515] [ ] | ||
Provision P&L account [6865] [ ] | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
* Check *Allow currency revaluation* on accounts you want to revaluate. | ||
* Open the wizard 'Invoicing > Adviser > Currency Revaluation' to generate the | ||
revaluation journal entries. It adjusts account balance having | ||
*Allow currency revaluation* checked. | ||
* Open the report through the following menu: | ||
Accounting > Reporting > Legal Reports > Accounting Reports > Print Currency Unrealized | ||
|
||
|
||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas | ||
:alt: Try me on Runbot | ||
:target: https://runbot.odoo-community.org/runbot/89/11.0 | ||
|
||
|
||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-closing/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/account-closing/issues/new?body=module:%20account_multicurrency_revaluation%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* Camptocamp | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Alexandre Fayolle | ||
* Alexis de Lattre | ||
* Frédéric Clementi | ||
* Guewen Baconnier @ Camptocamp | ||
* Joel Grand-Guillaume | ||
* Kinner Vachhani | ||
* Matt Choplin choplin.mat@gmail.com | ||
* Matthieu Dietrich | ||
* moylop260 | ||
* Pedro M. Baeza | ||
* Stéphane Bidoul | ||
* Vincent Renaville | ||
* Yannick Vaucher | ||
* Akim Juillerat | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/account-closing <https://github.com/OCA/account-closing/tree/12.0/account_multicurrency_revaluation>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from . import wizard | ||
from . import model | ||
from . import report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Copyright 2012-2018 Camptocamp SA | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Multicurrency revaluation", | ||
"version": "12.0.1.0.0", | ||
"category": "Finance", | ||
"summary": "Manage revaluation for multicurrency environment", | ||
"author": "Camptocamp,Odoo Community Association (OCA)", | ||
"license": 'AGPL-3', | ||
"depends": [ | ||
"account", | ||
], | ||
"demo": [ | ||
"demo/account_demo.xml", | ||
"demo/currency_demo.xml", | ||
], | ||
"data": [ | ||
"views/res_config_view.xml", | ||
"security/security.xml", | ||
"views/account_view.xml", | ||
"wizard/print_currency_unrealized_report_view.xml", | ||
"wizard/wizard_currency_revaluation_view.xml", | ||
"report/assets.xml", | ||
"report/report.xml", | ||
"report/unrealized_currency_gain_loss.xml", | ||
], | ||
'installable': True, | ||
} |
133 changes: 133 additions & 0 deletions
133
account_multicurrency_revaluation/demo/account_demo.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<record id="res_partner_reval" model="res.partner"> | ||
<field name="name">Revaluation Company</field> | ||
<field eval="1" name="customer"/> | ||
<field eval="1" name="supplier"/> | ||
<field eval="1" name="is_company"/> | ||
<field eval="1" name="active"/> | ||
<field name="street">90 Streets Avenue</field> | ||
<field name="country_id" ref="base.ch"/> | ||
<field name="zip">1000</field> | ||
<field name="city">Lausanne</field> | ||
<field name="email">revaluation@yourcompany.com</field> | ||
<field name="phone">+41 12 345 67 89</field> | ||
<field name="website">www.revaluationcompany.com</field> | ||
</record> | ||
|
||
<record id="res_company_reval" model="res.company"> | ||
<field name="currency_id" ref="base.EUR"/> | ||
<field name="partner_id" ref="res_partner_reval"/> | ||
<field name="name">Revaluation Company</field> | ||
</record> | ||
<record id="acc_reval_loss" model="account.account"> | ||
<field name="name">Reval Loss</field> | ||
<field name="code">XR001</field> | ||
<field name="user_type_id" ref="account.data_account_type_current_assets" /> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="acc_reval_gain" model="account.account"> | ||
<field name="name">Reval Gain</field> | ||
<field name="code">XR002</field> | ||
<field name="user_type_id" ref="account.data_account_type_current_assets" /> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="acc_prov_bs_loss" model="account.account"> | ||
<field name="name">Prov B.S Loss</field> | ||
<field name="code">XPBS001</field> | ||
<field name="user_type_id" ref="account.data_account_type_current_assets" /> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="acc_prov_bs_gain" model="account.account"> | ||
<field name="name">Prov B.S Gain</field> | ||
<field name="code">XPBS002</field> | ||
<field name="user_type_id" ref="account.data_account_type_current_assets" /> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="acc_prov_pl_loss" model="account.account"> | ||
<field name="name">Prov P L Loss</field> | ||
<field name="code">XPPL001</field> | ||
<field name="user_type_id" ref="account.data_account_type_expenses" /> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="acc_prov_pl_gain" model="account.account"> | ||
<field name="name">Prov P L Gain</field> | ||
<field name="code">XPPL002</field> | ||
<field name="user_type_id" ref="account.data_account_type_revenue" /> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="demo_acc_receivable" model="account.account"> | ||
<field name="name">Account Receivable</field> | ||
<field name="code">accrec</field> | ||
<field name="user_type_id" ref="account.data_account_type_receivable" /> | ||
<field name="currency_revaluation">True</field> | ||
<field name="reconcile">True</field> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="demo_acc_payable" model="account.account"> | ||
<field name="name">Account Payable</field> | ||
<field name="code">accpay</field> | ||
<field name="user_type_id" ref="account.data_account_type_payable" /> | ||
<field name="currency_revaluation">True</field> | ||
<field name="reconcile">True</field> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="demo_acc_revenue" model="account.account"> | ||
<field name="name">Account Revenue</field> | ||
<field name="code">accrev</field> | ||
<field name="user_type_id" ref="account.data_account_type_revenue" /> | ||
<field name="currency_revaluation">True</field> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="demo_acc_liquidity_usd" model="account.account"> | ||
<field name="name">Account Liquidity USD</field> | ||
<field name="code">accliq_usd</field> | ||
<field name="user_type_id" ref="account.data_account_type_liquidity" /> | ||
<field name="currency_revaluation">True</field> | ||
<field name="currency_id" ref="base.USD" /> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="demo_acc_liquidity_gbp" model="account.account"> | ||
<field name="name">Account Liquidity GBP</field> | ||
<field name="code">accliq_gbp</field> | ||
<field name="user_type_id" ref="account.data_account_type_liquidity" /> | ||
<field name="currency_revaluation">True</field> | ||
<field name="currency_id" ref="base.GBP" /> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="reval_journal" model="account.journal"> | ||
<field name="name">Revaluation Journal</field> | ||
<field name="code">RJ</field> | ||
<field name="type">general</field> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="bank_journal_usd" model="account.journal"> | ||
<field name="name">Bank Journal USD</field> | ||
<field name="code">BJ USD</field> | ||
<field name="type">bank</field> | ||
<field name="currency_id" ref="base.USD"/> | ||
<field name="default_debit_account_id" ref="demo_acc_liquidity_usd"/> | ||
<field name="default_credit_account_id" ref="demo_acc_liquidity_usd"/> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="bank_journal_gbp" model="account.journal"> | ||
<field name="name">Bank Journal GBP</field> | ||
<field name="code">BJ GBP</field> | ||
<field name="type">bank</field> | ||
<field name="currency_id" ref="base.GBP"/> | ||
<field name="default_debit_account_id" ref="demo_acc_liquidity_gbp"/> | ||
<field name="default_credit_account_id" ref="demo_acc_liquidity_gbp"/> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="sales_journal" model="account.journal"> | ||
<field name="name">A Sales Journal</field> | ||
<field name="code">SJ</field> | ||
<field name="type">sale</field> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record id="account_payment_method_manual_in" model="account.payment.method"> | ||
<field name="name">Manual</field> | ||
<field name="code">manual</field> | ||
<field name="payment_type">inbound</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<record model="res.currency.rate" id="currency_rate_usd_01"> | ||
<field eval="time.strftime('%Y-01-15')" name="name" /> | ||
<field name="rate">2</field> | ||
<field name="currency_id" ref="base.USD"/> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record model="res.currency.rate" id="currency_rate_usd_02"> | ||
<field eval="time.strftime('%Y-02-15')" name="name" /> | ||
<field name="rate">4</field> | ||
<field name="currency_id" ref="base.USD"/> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record model="res.currency.rate" id="currency_rate_usd_03"> | ||
<field eval="time.strftime('%Y-03-15')" name="name" /> | ||
<field name="rate">2.5</field> | ||
<field name="currency_id" ref="base.USD"/> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record model="res.currency.rate" id="currency_rate_gbp_01"> | ||
<field eval="time.strftime('%Y-01-15')" name="name" /> | ||
<field name="rate">2</field> | ||
<field name="currency_id" ref="base.GBP"/> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record model="res.currency.rate" id="currency_rate_gbp_02"> | ||
<field eval="time.strftime('%Y-02-15')" name="name" /> | ||
<field name="rate">4</field> | ||
<field name="currency_id" ref="base.GBP"/> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
<record model="res.currency.rate" id="currency_rate_gbp_03"> | ||
<field eval="time.strftime('%Y-03-15')" name="name" /> | ||
<field name="rate">2.5</field> | ||
<field name="currency_id" ref="base.GBP"/> | ||
<field name="company_id" ref="res_company_reval" /> | ||
</record> | ||
</odoo> |
Oops, something went wrong.