Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] account_multicurrency_revaluation (good branch) #263

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
c2820e5
[IMP] Fetching from 11.0 only `account_multicurrency_revaluation` module
hbto Nov 24, 2018
9f352ec
[MIG] account_multicurrency_revaluation: Migration to 12.0
hbto Nov 24, 2018
ecd92d3
Translated using Weblate (Spanish)
mvrodriguez Feb 4, 2019
a27537f
Translated using Weblate (Spanish)
mvrodriguez Feb 6, 2019
db02eb9
[FIX] Display computation rate on move line label
grindtildeath Jan 30, 2019
351e332
Drop unneeded override of res.currency
grindtildeath Apr 2, 2019
d5081bf
Remove commented line
grindtildeath Apr 2, 2019
40471db
Make use of api.multi to avoid extra parameter
grindtildeath Apr 4, 2019
5b52e97
Translated using Weblate (French)
svalaeys Aug 1, 2019
770daae
[IMP] account_multicurrency_revaluation: black, isort
ernestotejeda Dec 4, 2019
20bf0ed
[MIG] account_multicurrency_revaluation: Migration to 13.0
ernestotejeda Dec 4, 2019
b739e00
[MIG+FIX] account_multicurrency_revaluation: Fix tests for migration
pedrobaeza Feb 7, 2020
6629a84
[IMP] account_multicurrency_revaluation: black, isort, prettier
May 5, 2020
c7d2b30
Translated using Weblate (Spanish (Argentina))
ibuioli Jul 13, 2020
650ebf9
Translated using Weblate (Chinese (Simplified))
dong-z Aug 28, 2020
9209bbb
Translated using Weblate (Spanish (Argentina))
ibuioli Oct 11, 2020
aa15a4f
[IMP] account_multicurrency_revaluation
alexey-pelykh Dec 23, 2020
adf2973
[IMP] account_multicurrency_revaluation: black, isort, prettier
hailangvn Oct 20, 2021
cf2ae9c
[IMP] account_multicurrency_revaluation: fix test, reverse moves
hailangvn Oct 20, 2021
701ecad
[IMP] account_multicurrency_revaluation: black, isort, prettier
phuctranfxvn Jan 2, 2021
acb3a57
[MIG] account_multicurrency_revaluation: Migration to 14.0
phuctranfxvn Jan 2, 2021
4e65796
[UPD] Update account_multicurrency_revaluation.pot
oca-travis May 20, 2022
ec1e90c
[UPD] README.rst
OCA-git-bot May 20, 2022
b64f54f
[MIG] account_multicurrency_revaluation: Migration to 15.0
JasminSForgeFlow Jun 9, 2022
c6ffdd5
[UPD] Update account_multicurrency_revaluation.pot
Jul 29, 2022
be939f6
[UPD] README.rst
OCA-git-bot Jul 29, 2022
e704860
[FIX] account_multicurrency_revaluation: remove redundant default
MiquelRForgeFlow Sep 13, 2022
13e1c2e
account_multicurrency_revaluation 15.0.1.0.1
OCA-git-bot Sep 13, 2022
25e5ef7
Translated using Weblate (Italian)
francesco-ooops Jan 3, 2023
61becbf
Translated using Weblate (Italian)
francesco-ooops Jan 30, 2023
cc75908
[IMP]account_multicurrency_revaluation: Auto-Post Entries Setting
GuillemCForgeFlow Oct 5, 2022
d8f32c9
[UPD] Update account_multicurrency_revaluation.pot
Mar 10, 2023
b9632fe
account_multicurrency_revaluation 15.0.1.1.0
OCA-git-bot Mar 10, 2023
cf0614f
Update translation files
weblate Mar 12, 2023
9191e5b
Translated using Weblate (Spanish (Argentina))
ibuioli Mar 12, 2023
19fd0b1
Translated using Weblate (Spanish)
Ivorra78 Jun 27, 2023
c44edaf
Translated using Weblate (Spanish)
Ivorra78 Jun 27, 2023
43a480e
[UPD] README.rst
OCA-git-bot Sep 3, 2023
822b25f
[IMP] account_multicurrency_revaluation: filter accounts by company
JordiMForgeFlow Aug 10, 2022
b01273a
[IMP] account_multicurrency_revaluation: use active company instead o…
JordiMForgeFlow Aug 10, 2022
6d7b58a
[FIX] account_multicurrency_revaluation: fix report layout and field …
JordiMForgeFlow Aug 11, 2022
c7288b7
[IMP]account_multicurrency_revaluation: Start Revaluation Period
GuillemCForgeFlow Oct 5, 2022
b2daecb
[IMP]account_multicurrency_revaluation: Filter out non company accounts
GuillemCForgeFlow Oct 5, 2022
889610a
[IMP]account_multicurrency_revaluation: Start and End Date on report …
GuillemCForgeFlow Oct 5, 2022
fcb6473
[IMP]account_multicurrency_revaluation: Revaluation Date on Report
GuillemCForgeFlow Oct 5, 2022
802eecb
[IMP]account_multicurrency_revaluation: Other improvements
GuillemCForgeFlow Oct 5, 2022
640aaf8
[IMP]account_multicurrency_revaluation: Readonly False for settings
GuillemCForgeFlow Oct 5, 2022
6e14b43
[IMP]account_multicurrency_revaluation: Improve company and related f…
GuillemCForgeFlow Oct 25, 2022
676dde2
[IMP]account_multicurrency_revaluation: Only include posted entries i…
GuillemCForgeFlow Oct 25, 2022
0ef15b6
[IMP]account_multicurrency_revaluation: Replace flaged accounts for f…
GuillemCForgeFlow Oct 25, 2022
4819381
[IMP]account_multicurrency_revaluation: adapt tests
GuillemCForgeFlow Oct 25, 2022
3057fc0
[IMP]account_multicurrency_revaluation
GuillemCForgeFlow Nov 4, 2022
5da190f
[IMP]account_multicurrency_revaluation: Remove currency in line
GuillemCForgeFlow Nov 16, 2022
a650493
[IMP]account_multicurrency_revaluation: Reverse moves
GuillemCForgeFlow Nov 16, 2022
1e37544
[IMP]account_multicurrency_revaluation: Always flag revaluated entries
GuillemCForgeFlow Nov 17, 2022
5545a48
[IMP]account_multicurrency_revaluation: Small improvements
GuillemCForgeFlow Nov 18, 2022
32830f0
[IMP]account_multicurrency_revaluation: Line origin
GuillemCForgeFlow Nov 23, 2022
59d9bdb
[FIX]account_multicurrency_revaluation: Use all open items
GuillemCForgeFlow Nov 24, 2022
51e3c79
[IMP]account_multicurrency_revaluation
GuillemCForgeFlow Nov 24, 2022
b18332f
[IMP]account_multicurrency_revaluation: Adjust values if partial reco…
GuillemCForgeFlow Dec 2, 2022
9014e36
[IMP]account_multicurrency_revaluation: add style to div
GuillemCForgeFlow Dec 19, 2022
084fd02
[FIX]account_multicurrency_revaluation: Fix tests
GuillemCForgeFlow Mar 14, 2023
8352aaf
[UPD] Update account_multicurrency_revaluation.pot
Sep 13, 2023
a766e2a
[UPD] README.rst
OCA-git-bot Sep 13, 2023
c940783
account_multicurrency_revaluation 15.0.1.2.0
OCA-git-bot Sep 13, 2023
11f1397
[UPD] README.rst
OCA-git-bot Sep 13, 2023
98f6823
[IMP] account_multicurrency_revaluation: pre-commit stuff
Borruso Jun 19, 2023
1beb4c3
[MIG] account_multicurrency_revaluation: Migration to 16.0
Borruso Jun 21, 2023
e26cce8
[IMP] account_multicurrency_revaluation: add acces rules for a wizard
MiquelRForgeFlow Sep 13, 2023
b6422f5
[FIX] account_multicurrency_revaluation: readapt some tests to v16
MiquelRForgeFlow Sep 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 164 additions & 0 deletions account_multicurrency_revaluation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
=========================
Multicurrency revaluation
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:21d2ecde4fc4ca2edb2de1167f961b437472a34922a927e6102098838f37ed11
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/16.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-16-0/account-closing-16-0-account_multicurrency_revaluation
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-closing&target_branch=16.0
:alt: Try me on Runboat

|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:

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'.

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 > Reporting > Closing Entries > Currency Revaluation Report' to generate the
revaluation journal entries. It adjusts account balance having
*Allow currency revaluation* checked.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-closing/issues/new?body=module:%20account_multicurrency_revaluation%0Aversion:%2016.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
* Stéphane Bidoul
* Vincent Renaville
* Yannick Vaucher
* Akim Juillerat
* `CorporateHub <https://corporatehub.eu/>`_:

* Alexey Pelykh <alexey.pelykh@corphub.eu>
* `Tecnativa <https://www.tecnativa.com>`_:

* Pedro M. Baeza
* Ernesto Tejeda
* Phuc (Tran Thanh) <phuc@trobz.com>
* `ForgeFlow <https://www.forgeflow.com>`_:

* Jordi Masvidal
* Guillem Casassas

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* Camptocamp

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/16.0/account_multicurrency_revaluation>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions account_multicurrency_revaluation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import wizard
from . import model
from . import report
33 changes: 33 additions & 0 deletions account_multicurrency_revaluation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2012-2018 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Multicurrency revaluation",
"version": "16.0.1.0.0",
"category": "Finance",
"summary": "Manage revaluation for multicurrency environment",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-closing",
"license": "AGPL-3",
"depends": ["account"],
"demo": ["demo/account_demo.xml", "demo/currency_demo.xml"],
"data": [
"views/res_config_view.xml",
"security/security.xml",
"security/ir.model.access.csv",
"views/account_view.xml",
"views/account_move_views.xml",
"views/account_move_line_views.xml",
"wizard/print_currency_unrealized_report_view.xml",
"wizard/wizard_currency_revaluation_view.xml",
"wizard/wizard_reverse_currency_revaluation_view.xml",
"report/report.xml",
"report/unrealized_currency_gain_loss.xml",
],
"assets": {
"web.report_assets_common": [
"account_multicurrency_revaluation/static/src/css/reports.css",
],
},
"installable": True,
}
141 changes: 141 additions & 0 deletions account_multicurrency_revaluation/demo/account_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?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="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="demo_acc_liquidity_eur" model="account.account">
<field name="name">Account Liquidity EURO</field>
<field name="code">accliq.eur</field>
<field name="account_type">asset_cash</field>
<field name="currency_revaluation">True</field>
<field name="currency_id" ref="base.EUR" />
<field name="company_id" ref="res_company_reval" />
</record>
<record id="acc_reval_loss" model="account.account">
<field name="name">Reval Loss</field>
<field name="code">XR001</field>
<field name="account_type">asset_current</field>
<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="account_type">asset_current</field>
<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="account_type">asset_current</field>
<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="account_type">asset_current</field>
<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="account_type">expense</field>
<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="account_type">income</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="account_type">liability_payable</field>
<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="account_type">income</field>
<field name="currency_revaluation">True</field>
<field name="company_id" ref="res_company_reval" />
</record>
<record id="demo_acc_suspense" model="account.account">
<field name="name">Account Suspense</field>
<field name="code">accsus</field>
<field name="account_type">income</field>
<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="account_type">asset_cash</field>
<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="account_type">asset_cash</field>
<field name="currency_revaluation">True</field>
<field name="currency_id" ref="base.GBP" />
<field name="company_id" ref="res_company_reval" />
</record>
<record id="analytic_plan_revaluation" model="account.analytic.plan">
<field name="name">Revaluation</field>
<field name="company_id" ref="res_company_reval" />
</record>
<record id="acc_analytic" model="account.analytic.account">
<field name="name">Analytic Account</field>
<field name="code">XA001</field>
<field name="company_id" ref="res_company_reval" />
<field
name="plan_id"
ref="account_multicurrency_revaluation.analytic_plan_revaluation"
/>
</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="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="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>
</odoo>
21 changes: 21 additions & 0 deletions account_multicurrency_revaluation/demo/currency_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<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>
Loading
Loading