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

[17.0][MIG] account_multicurrency_revaluation #302

Open
wants to merge 86 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
ddcf636
[IMP] Fetching from 11.0 only `account_multicurrency_revaluation` module
hbto Nov 24, 2018
2667f8b
[MIG] account_multicurrency_revaluation: Migration to 12.0
hbto Nov 24, 2018
37b706c
Translated using Weblate (Spanish)
mvrodriguez Feb 4, 2019
82bcfe2
Translated using Weblate (Spanish)
mvrodriguez Feb 6, 2019
62e2663
[FIX] Display computation rate on move line label
grindtildeath Jan 30, 2019
74781c4
Drop unneeded override of res.currency
grindtildeath Apr 2, 2019
1cc58dd
Remove commented line
grindtildeath Apr 2, 2019
2a28728
Make use of api.multi to avoid extra parameter
grindtildeath Apr 4, 2019
c6b0b68
Translated using Weblate (French)
svalaeys Aug 1, 2019
a1b573b
[IMP] account_multicurrency_revaluation: black, isort
ernestotejeda Dec 4, 2019
e0e1a29
[MIG] account_multicurrency_revaluation: Migration to 13.0
ernestotejeda Dec 4, 2019
11cff82
[MIG+FIX] account_multicurrency_revaluation: Fix tests for migration
pedrobaeza Feb 7, 2020
3d0fd38
[IMP] account_multicurrency_revaluation: black, isort, prettier
May 5, 2020
e28c776
Translated using Weblate (Spanish (Argentina))
ibuioli Jul 13, 2020
4afafda
Translated using Weblate (Chinese (Simplified))
dong-z Aug 28, 2020
c81f474
Translated using Weblate (Spanish (Argentina))
ibuioli Oct 11, 2020
a32884b
[IMP] account_multicurrency_revaluation
alexey-pelykh Dec 23, 2020
933b6de
[IMP] account_multicurrency_revaluation: black, isort, prettier
hailangvn Oct 20, 2021
b0b957b
[IMP] account_multicurrency_revaluation: fix test, reverse moves
hailangvn Oct 20, 2021
27be9a4
[IMP] account_multicurrency_revaluation: black, isort, prettier
phuctranfxvn Jan 2, 2021
cd962b6
[MIG] account_multicurrency_revaluation: Migration to 14.0
phuctranfxvn Jan 2, 2021
3ea5280
[UPD] Update account_multicurrency_revaluation.pot
oca-travis May 20, 2022
6d21a94
[UPD] README.rst
OCA-git-bot May 20, 2022
07fbfc6
[MIG] account_multicurrency_revaluation: Migration to 15.0
JasminSForgeFlow Jun 9, 2022
79bce78
[UPD] Update account_multicurrency_revaluation.pot
Jul 29, 2022
c4c66ad
[UPD] README.rst
OCA-git-bot Jul 29, 2022
c8023be
[FIX] account_multicurrency_revaluation: remove redundant default
MiquelRForgeFlow Sep 13, 2022
961a110
account_multicurrency_revaluation 15.0.1.0.1
OCA-git-bot Sep 13, 2022
786139b
Translated using Weblate (Italian)
francesco-ooops Jan 3, 2023
754fa0d
Translated using Weblate (Italian)
francesco-ooops Jan 30, 2023
403d6a2
[IMP]account_multicurrency_revaluation: Auto-Post Entries Setting
GuillemCForgeFlow Oct 5, 2022
157e28e
[UPD] Update account_multicurrency_revaluation.pot
Mar 10, 2023
86739af
account_multicurrency_revaluation 15.0.1.1.0
OCA-git-bot Mar 10, 2023
b78209a
Update translation files
weblate Mar 12, 2023
6dfe6eb
Translated using Weblate (Spanish (Argentina))
ibuioli Mar 12, 2023
cf7bf27
Translated using Weblate (Spanish)
Ivorra78 Jun 27, 2023
945bb9e
Translated using Weblate (Spanish)
Ivorra78 Jun 27, 2023
1e0190e
[UPD] README.rst
OCA-git-bot Sep 3, 2023
7a2c9aa
[IMP] account_multicurrency_revaluation: filter accounts by company
JordiMForgeFlow Aug 10, 2022
13c1a87
[IMP] account_multicurrency_revaluation: use active company instead o…
JordiMForgeFlow Aug 10, 2022
e4b2238
[FIX] account_multicurrency_revaluation: fix report layout and field …
JordiMForgeFlow Aug 11, 2022
514287e
[IMP]account_multicurrency_revaluation: Start Revaluation Period
GuillemCForgeFlow Oct 5, 2022
c03357c
[IMP]account_multicurrency_revaluation: Filter out non company accounts
GuillemCForgeFlow Oct 5, 2022
b2d3d01
[IMP]account_multicurrency_revaluation: Start and End Date on report …
GuillemCForgeFlow Oct 5, 2022
eed9a0c
[IMP]account_multicurrency_revaluation: Revaluation Date on Report
GuillemCForgeFlow Oct 5, 2022
b3ae0b5
[IMP]account_multicurrency_revaluation: Other improvements
GuillemCForgeFlow Oct 5, 2022
6e21d41
[IMP]account_multicurrency_revaluation: Readonly False for settings
GuillemCForgeFlow Oct 5, 2022
8f4b711
[IMP]account_multicurrency_revaluation: Improve company and related f…
GuillemCForgeFlow Oct 25, 2022
7318702
[IMP]account_multicurrency_revaluation: Only include posted entries i…
GuillemCForgeFlow Oct 25, 2022
1fcc00a
[IMP]account_multicurrency_revaluation: Replace flaged accounts for f…
GuillemCForgeFlow Oct 25, 2022
a7f2c19
[IMP]account_multicurrency_revaluation: adapt tests
GuillemCForgeFlow Oct 25, 2022
21a559f
[IMP]account_multicurrency_revaluation
GuillemCForgeFlow Nov 4, 2022
e419b3e
[IMP]account_multicurrency_revaluation: Remove currency in line
GuillemCForgeFlow Nov 16, 2022
69d3728
[IMP]account_multicurrency_revaluation: Reverse moves
GuillemCForgeFlow Nov 16, 2022
ef63a5e
[IMP]account_multicurrency_revaluation: Always flag revaluated entries
GuillemCForgeFlow Nov 17, 2022
12795ee
[IMP]account_multicurrency_revaluation: Small improvements
GuillemCForgeFlow Nov 18, 2022
40558e0
[IMP]account_multicurrency_revaluation: Line origin
GuillemCForgeFlow Nov 23, 2022
b18023e
[FIX]account_multicurrency_revaluation: Use all open items
GuillemCForgeFlow Nov 24, 2022
d62540e
[IMP]account_multicurrency_revaluation
GuillemCForgeFlow Nov 24, 2022
f6b573c
[IMP]account_multicurrency_revaluation: Adjust values if partial reco…
GuillemCForgeFlow Dec 2, 2022
cc32d88
[IMP]account_multicurrency_revaluation: add style to div
GuillemCForgeFlow Dec 19, 2022
fcd7a2b
[FIX]account_multicurrency_revaluation: Fix tests
GuillemCForgeFlow Mar 14, 2023
30ffe7f
[UPD] Update account_multicurrency_revaluation.pot
Sep 13, 2023
4459b12
[UPD] README.rst
OCA-git-bot Sep 13, 2023
fc8179f
account_multicurrency_revaluation 15.0.1.2.0
OCA-git-bot Sep 13, 2023
468e542
[UPD] README.rst
OCA-git-bot Sep 13, 2023
8add0ed
[MIG] account_multicurrency_revaluation: Migration to 16.0
Borruso Jun 21, 2023
d8da7a8
[IMP] account_multicurrency_revaluation: add acces rules for a wizard
MiquelRForgeFlow Sep 13, 2023
03e9d15
[FIX] account_multicurrency_revaluation: readapt some tests to v16
MiquelRForgeFlow Sep 13, 2023
e2fb054
[UPD] Update account_multicurrency_revaluation.pot
Nov 7, 2023
3e38911
[BOT] post-merge updates
OCA-git-bot Nov 7, 2023
7b15c6a
Update translation files
weblate Nov 7, 2023
884928e
Translated using Weblate (Spanish)
Ivorra78 Nov 7, 2023
fee10d9
[FIX] account_multicurrency_revaluation: avoid error in query
MiquelRForgeFlow Nov 13, 2023
1ede77b
[BOT] post-merge updates
OCA-git-bot Nov 13, 2023
0075aa0
[TRN] remove fr_FR.po
sbidoul Nov 21, 2023
d76bbe5
Translated using Weblate (Swedish)
jakobkrabbe Feb 27, 2024
8fc0526
Translated using Weblate (Swedish)
jakobkrabbe Feb 27, 2024
e5db578
Translated using Weblate (Italian)
mymage Mar 18, 2024
625a483
Translated using Weblate (Italian)
mymage Apr 2, 2024
72f2f58
Translated using Weblate (Persian)
mostafabarmshory Apr 20, 2024
57ab7fd
Translated using Weblate (Croatian)
badbole Jun 17, 2024
9f7e122
Translated using Weblate (Croatian)
badbole Jun 18, 2024
f366e71
Translated using Weblate (Italian)
mymage Jul 22, 2024
b1fe1f8
[IMP] mig-account_multicurrency_revaluation: pre-commit auto fixes
milinsoft Mar 28, 2024
51f432d
[MIG] account_multicurrency_revaluation: v16 -> v17
milinsoft Mar 28, 2024
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
172 changes: 172 additions & 0 deletions account_multicurrency_revaluation/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
=========================
Multicurrency revaluation
=========================

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

.. |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/17.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-17-0/account-closing-17-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=17.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:%2017.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 <[email protected]>
- Matthieu Dietrich
- moylop260
- Stéphane Bidoul
- Vincent Renaville
- Yannick Vaucher
- Akim Juillerat
- Aleksander Milinkevich
- Asta Kasinskaite
- `CorporateHub <https://corporatehub.eu/>`__:

- Alexey Pelykh <[email protected]>

- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Ernesto Tejeda

- Phuc (Tran Thanh) <[email protected]>
- `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/17.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
37 changes: 37 additions & 0 deletions account_multicurrency_revaluation/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "Multicurrency revaluation",
"version": "17.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/res_partner.xml",
"demo/res_company.xml",
"demo/res_currency_rate.xml",
"demo/account_account.xml",
"demo/account_journal.xml",
"demo/account_analytic.xml",
],
"data": [
"views/res_config_settings.xml",
"security/account_multicurrency_revaluation_groups.xml",
"security/ir.model.access.csv",
"views/account_account.xml",
"views/account_move.xml",
"views/account_move_line.xml",
"wizard/print_currency_unrealized_report_view.xml",
"wizard/wizard_currency_revaluation_view.xml",
"wizard/wizard_reverse_currency_revaluation_view.xml",
"report/currency_unrealized_report.xml",
"templates/currency_unrealized_report.xml",
],
"assets": {
"web.report_assets_common": [
"account_multicurrency_revaluation/static/src/css/reports.css",
],
},
"installable": True,
}
85 changes: 85 additions & 0 deletions account_multicurrency_revaluation/demo/account_account.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<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>
</odoo>
15 changes: 15 additions & 0 deletions account_multicurrency_revaluation/demo/account_analytic.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="analytic_plan_revaluation" model="account.analytic.plan">
<field name="name">Revaluation</field>
</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>
</odoo>
29 changes: 29 additions & 0 deletions account_multicurrency_revaluation/demo/account_journal.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<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>
8 changes: 8 additions & 0 deletions account_multicurrency_revaluation/demo/res_company.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<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>
</odoo>
21 changes: 21 additions & 0 deletions account_multicurrency_revaluation/demo/res_currency_rate.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>
15 changes: 15 additions & 0 deletions account_multicurrency_revaluation/demo/res_partner.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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">[email protected]</field>
<field name="phone">+41 12 345 67 89</field>
<field name="website">www.revaluationcompany.com</field>
</record>
</odoo>
Loading
Loading