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_reversal (reversal usability improvements) #1725

Open
wants to merge 77 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
51293b4
[ADD] port account_reversal from v6.0 and add features : to_be_revers…
Jan 31, 2012
2f376a1
[MIGR] set installable to False on all the modules, the flag has to b…
guewen Jan 4, 2013
3f9a571
[MIGR] set account_reversal installable
guewen Jan 4, 2013
f3b8a6c
[IMP] manifest
guewen Jan 4, 2013
dc01b23
[FIX] encoding should be coding
guewen Jan 4, 2013
03117fa
[FIX] license mess, the whole addon is release under AGPLv3 but a pyt…
guewen Jan 4, 2013
c9cff7a
[IMP] python formatting, OpenERP standards
guewen Jan 4, 2013
bdcac9b
[FIX] remove useless type in views
guewen Jan 4, 2013
534b5a9
[FIX] one more type to remove
guewen Jan 4, 2013
c649a4a
[IMP] views for version 7.0
guewen Jan 4, 2013
c6cfeeb
[IMP] python formating
yvaucher Jan 14, 2013
23f81b4
[IMP] Translation template files for all modules.
Oct 18, 2013
1b46f69
Launchpad automatic translations update.
Oct 19, 2013
a7c9dfe
[FIX] Avoid a crash when the next period doesn't exist (for example :…
Dec 20, 2013
51307c1
Launchpad automatic translations update.
Jan 3, 2014
645214c
Set all addons to uninstallable
nbessi Jun 30, 2014
e903be6
Rename all addons to xxx_unported to be travis compliant
nbessi Jun 30, 2014
f7700db
Revert "Rename all addons to xxx_unported to be travis compliant"
Jul 2, 2014
9131053
[FIX] move all unported addons into __unported__ folder instead of ad…
Jul 2, 2014
6c83728
[FIX] flake8 PEP8 for module account_reversal
nbessi Jul 10, 2014
abaded3
Move account_reversal from __unported__ to root folder
guewen Nov 11, 2014
1557a2c
Move the description in README.rst
guewen Nov 11, 2014
98d3e4f
Set the module installable
guewen Nov 11, 2014
5c19c6c
Use relative imports
guewen Nov 11, 2014
261aa1f
Size useless on char fields
guewen Nov 11, 2014
7e2fc13
[FIX] pylint relative imports
sbidoul Nov 18, 2014
345c739
[IMP] improve account_reversal fr translation
sbidoul Nov 29, 2014
622be60
initial german translation (mostly)
rschnapka Jan 6, 2015
951b86c
removed extra linefeed
rschnapka Jan 7, 2015
9e02bdc
Add OCA as author of OCA addons
gurneyalex Mar 2, 2015
a73d33b
[FIX] Nonexisting field in data entry
Apr 20, 2015
202f607
[FIX][account_reversal] To be reversed should be false after reversal
adrienpeiffer Apr 27, 2015
9369f04
Rewritten for new api.
bringsvor Dec 1, 2014
a5aed07
Missing default value for company_id.
bringsvor Dec 3, 2014
8e685d3
Added a unittest as requested.
bringsvor Mar 4, 2015
0233bcc
Make Warnings translatable
Jun 30, 2015
e6afd13
Fixup tests
Jul 8, 2015
81a2458
[FIX] account_reversal: correctly display the reversal move
sbidoul Jul 11, 2015
2f43a46
Use api.multi
Jul 13, 2015
512eee4
[FIX] account_reversal: fix test
sbidoul Jul 14, 2015
84c9d4f
[IMP] account_reversal: update contributors
sbidoul Jul 14, 2015
189f13a
[FIX] account_reversal: allow reversing move in closed periods, fixes…
sbidoul Jul 24, 2015
44bb5d7
[FIX] add missing return statement
sbidoul Jul 24, 2015
93b45b2
[FIX][account_reversal] When period is set on the reversal wizard. re…
adrienpeiffer Jul 24, 2015
ece7e64
[IMP][account_reversal] Naming convention
adrienpeiffer Jul 31, 2015
3db62af
Revert "[FIX][account_reversal] When period is set on the reversal wi…
sbidoul Aug 15, 2015
883f475
[FIX][account_reversal] When period is set on the reversal wizard. re…
adrienpeiffer Jul 24, 2015
782aace
[IMP][account_reversal] Naming convention
adrienpeiffer Jul 31, 2015
57f6c3f
[CHG][account_reversal] Modify test according changes in _move_revers…
adrienpeiffer Aug 16, 2015
b8dc917
Add missing default oca icons
yvaucher Aug 18, 2015
d2299b7
OCA Transbot updated translations from Transifex
oca-transbot Sep 12, 2015
d515795
[UPD] prefix versions with 8.0
sbidoul Oct 9, 2015
022e6e0
[MIG] Make modules uninstallable
pedrobaeza Oct 14, 2015
4aea01c
[FIX] remove en.po that was erroneously created by transbot
sbidoul Aug 15, 2016
6013eae
[MIG] Rename manifest files
pedrobaeza Oct 6, 2016
27f11d7
[10.0][MIG] account_reversal migration (#445)
May 5, 2017
c58b640
[11.0][MIG] account_reversal migration
JordiBForgeFlow Nov 3, 2017
0eff4f5
Improve test
etobella Nov 6, 2017
415714d
OCA Transbot updated translations from Transifex
oca-transbot Dec 22, 2017
1adcd30
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
385e52d
[UPD] Update account_reversal.pot
oca-travis Jun 19, 2018
4d9f364
Translated using Weblate (Arabic)
osoul Jun 28, 2018
1add3bb
[UPD] Update account_reversal.pot
oca-travis Jul 12, 2018
d09af4a
OCA Transbot updated translations from Transifex
oca-transbot Dec 1, 2017
4a03d94
[FIX] account_reversal - Reverse multiple journal entries.
Sep 3, 2018
f218614
[FIX] account reversal typo
Nov 16, 2018
0db30b1
[UPD] Update account_reversal.pot
oca-travis Nov 16, 2018
3b3060d
Translated using Weblate (Dutch)
Nov 16, 2018
4cd33a4
Update translation files
oca-transbot Dec 9, 2018
c8fac8c
[11.0][IMP] Journal Entries to be Reversed menu
Jan 1, 2019
832df58
Update translation files
oca-transbot Mar 8, 2019
90e12c8
[IMP] account_reversal: pre-commit stuff
rousseldenis Sep 18, 2023
403c1a3
[16.0][MIG] account_reversal
rousseldenis Sep 19, 2023
668e9a4
[IMP] account_reversal: add reversal_id field
IT-Ideas Nov 4, 2023
1915f27
[IMP] account_reversal: improve fields ordering in view
sbidoul May 21, 2024
89f1663
[FIX] account_reversal: handle lines with empty label
sbidoul May 21, 2024
cfc1ec0
[IMP] account_reversal: clarify help and documentation
sbidoul May 21, 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
110 changes: 110 additions & 0 deletions account_reversal/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
================
Account Reversal
================

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

.. |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--financial--tools-lightgray.png?logo=github
:target: https://github.com/OCA/account-financial-tools/tree/16.0/account_reversal
:alt: OCA/account-financial-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-financial-tools-16-0/account-financial-tools-16-0-account_reversal
: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-financial-tools&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module improves the current Odoo implementation of accounting entries
reversal process by:

* adding a checkbox and filter "to be reversed" on account moves.
* allowing to add a line reason (the move reason already exists in core).
* makes the reason for account entries visible for normal entries too.

**Table of contents**

.. contents::
:local:

Usage
=====

* To mark journal entries as 'To Be Reversed':

#. Go to Accounting > Accounting > Journals > Journal Entries
#. In the journal entry, go to 'Other Info' tab and check the 'To Be Reversed' field.

.. image:: https://raw.githubusercontent.com/OCA/account-financial-tools/16.0/account_reversal/static/description/move_form.png

* In order to allow tracking entries that must be reversed for any reason:

#. Go To Accounting > Accounting > Journals > Journal Entries to be Reversed

* The Reverse wizard with both reasons looks like:

.. image:: https://raw.githubusercontent.com/OCA/account-financial-tools/16.0/account_reversal/static/description/reversal.png

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/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-financial-tools/issues/new?body=module:%20account_reversal%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
~~~~~~~

* Akretion
* Camptocamp
* ACSONE SA/NV
* Tecnativa

Contributors
~~~~~~~~~~~~

* Alexis de Lattre (Akretion)
* Guewen Baconnier (Camptocamp)
* Nicolas Bessi (Camptocamp)
* Torvald Bringsvor (Bringsvor Consulting)
* Sandy Carter (Savoir-faire Linux)
* Stéphane Bidoul (ACSONE)
* Antonio Espinosa (Tecnativa)
* Bhavesh Odedra <[email protected]>
* Denis Roussel <[email protected]>

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-financial-tools <https://github.com/OCA/account-financial-tools/tree/16.0/account_reversal>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions account_reversal/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models, wizards
23 changes: 23 additions & 0 deletions account_reversal/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2011 Alexis de Lattre <[email protected]>
# Copyright 2012-2013 Guewen Baconnier (Camptocamp)
# Copyright 2016 Antonio Espinosa <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Account Reversal",
"summary": "Account reversal usability improvements",
"version": "16.0.1.0.0",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/account-financial-tools",
"author": "Akretion,"
"Camptocamp,"
"ACSONE SA/NV,"
"Tecnativa,"
"Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["account"],
"data": [
"views/account_move_view.xml",
"wizards/account_move_reversal.xml",
],
}
61 changes: 61 additions & 0 deletions account_reversal/i18n/account_reversal.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_reversal
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-19 08:57+0000\n"
"PO-Revision-Date: 2023-09-19 08:57+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: account_reversal
#: model:ir.model,name:account_reversal.model_account_move_reversal
msgid "Account Move Reversal"
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,help:account_reversal.field_account_bank_statement_line__to_be_reversed
#: model:ir.model.fields,help:account_reversal.field_account_move__to_be_reversed
#: model:ir.model.fields,help:account_reversal.field_account_payment__to_be_reversed
msgid "Check this box if your entry has to be reversed at the end of period."
msgstr ""

#. module: account_reversal
#: model:ir.actions.act_window,name:account_reversal.action_move_to_be_reversed
#: model:ir.ui.menu,name:account_reversal.menu_move_to_be_reversed
#: model_terms:ir.ui.view,arch_db:account_reversal.view_account_move_filter
msgid "Journal Entries to be Reversed"
msgstr ""

#. module: account_reversal
#: model:ir.model,name:account_reversal.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reversal__line_reason
msgid "Line Reason"
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,help:account_reversal.field_account_move_reversal__line_reason
msgid ""
"Prefix that will be added to the 'Name' of the reversal account entry items."
" If empty, Odoo uses the same name of the move line to reverse. (NOTE: A "
"space is added after the prefix)."
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_bank_statement_line__to_be_reversed
#: model:ir.model.fields,field_description:account_reversal.field_account_move__to_be_reversed
#: model:ir.model.fields,field_description:account_reversal.field_account_payment__to_be_reversed
#: model_terms:ir.ui.view,arch_db:account_reversal.view_account_move_filter
msgid "To Be Reversed"
msgstr ""
188 changes: 188 additions & 0 deletions account_reversal/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_reversal
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-17 15:49+0000\n"
"PO-Revision-Date: 2018-05-17 15:49+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n"
"Language: am\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: account_reversal
#: model:ir.model,name:account_reversal.model_account_move
msgid "Account Entry"
msgstr "Asiento contable"

#. module: account_reversal
#: model:ir.ui.view,arch_db:account_reversal.view_account_move_reverse
msgid "Cancel"
msgstr "Cancelar"

#. module: account_reversal
#: model:ir.model.fields,help:account_reversal.field_account_move_to_be_reversed
msgid "Check this box if your entry has to be reversed at the end of period."
msgstr ""

#. module: account_reversal
#: model:ir.ui.view,arch_db:account_reversal.view_account_move_reverse
msgid "Create reversal journal entries"
msgstr "Crear inversos de los asientos contables"

#. module: account_reversal
#: model:ir.model,name:account_reversal.model_account_move_reverse
msgid "Create reversal of account moves"
msgstr "Crear inversos de los asientos contables"

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse_create_uid
msgid "Created by"
msgstr "Creado por"

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse_create_date
msgid "Created on"
msgstr "Creado en"

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse_display_name
msgid "Display Name"
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,help:account_reversal.field_account_move_reverse_date
msgid ""
"Enter the date of the reversal account entries. By default, Odoo proposes "
"the same date of the move to reverse."
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,help:account_reversal.field_account_move_reverse_journal_id
msgid ""
"Enter the journal of the reversal account entries. If empty, Odoo uses the "
"same journal of the move to reverse."
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse_move_prefix
msgid "Entries Ref. Prefix"
msgstr "Prefijo para la referencia"

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse_id
msgid "ID"
msgstr "ID"

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse_line_prefix
msgid "Items Name Prefix"
msgstr "Prefijo para el nombre del apunte"

#. module: account_reversal
#: model:ir.actions.act_window,name:account_reversal.action_move_to_be_reversed
#: model:ir.ui.menu,name:account_reversal.menu_move_to_be_reversed
#: model:ir.ui.view,arch_db:account_reversal.view_account_move_filter
msgid "Journal Entries to be Reversed"
msgstr "Asientos contables a invertir"

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse___last_update
msgid "Last Modified on"
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse_write_uid
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse_write_date
msgid "Last Updated on"
msgstr "Última actualización en"

#. module: account_reversal
#: model:ir.model.fields,help:account_reversal.field_account_move_reverse_reconcile
msgid "Mark this if you want to reconcile items of both moves."
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,help:account_reversal.field_account_move_reverse_line_prefix
msgid ""
"Prefix that will be added to the 'Name' of the reversal account entrie "
"items. If empty, Odoo uses the same name of the move line to reverse. (NOTE: "
"A space is added after the prefix)."
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,help:account_reversal.field_account_move_reverse_move_prefix
msgid ""
"Prefix that will be added to the 'Ref' of the reversal account entries. If "
"empty, Odoo uses the Ref of the move to reverse. (NOTE: A space is added "
"after the prefix)."
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse_reconcile
msgid "Reconcile"
msgstr ""

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse_date
msgid "Reversal Date"
msgstr "Fecha"

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reversal_id_5678
msgid "Reversal Entry"
msgstr "Asiento inverso"

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_reverse_journal_id
msgid "Reversal Journal"
msgstr "Diario"

#. module: account_reversal
#: model:ir.ui.view,arch_db:account_reversal.view_account_move_reverse
msgid "Reverse Entries"
msgstr "Asientos inversos"

#. module: account_reversal
#: code:addons/account_reversal/wizard/account_move_reverse.py:58
#, python-format
msgid "Reverse moves"
msgstr ""

#. module: account_reversal
#: model:ir.ui.view,arch_db:account_reversal.view_account_move_reverse
msgid ""
"This will create reversal for all selected entries whether checked 'to be "
"reversed' or not."
msgstr ""
"Esto creará el inverso para todos los asientos seleccionados "
"independientemente de si tienen la casilla \"Para ser invertido\" marcada."

#. module: account_reversal
#: model:ir.model.fields,field_description:account_reversal.field_account_move_to_be_reversed
#: model:ir.ui.view,arch_db:account_reversal.view_account_move_filter
msgid "To Be Reversed"
msgstr "Para ser invertido"

#. module: account_reversal
#: code:addons/account_reversal/models/account_move.py:56
#, python-format
msgid "Wrong company Journal is '%s' but we have '%s'"
msgstr ""

#. module: account_reversal
#: model:ir.ui.view,arch_db:account_reversal.view_account_move_reverse
msgid "or"
msgstr "o"
Loading
Loading