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

[18.0][MIG] account_netting #2023

Open
wants to merge 45 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
8e97873
account_netting: AR/AP netting
pedrobaeza Aug 7, 2015
f8984f7
account_netting: Migration to 10.0
cubells Oct 13, 2017
a03c246
Migrate account_netting to 11.0.
Jan 25, 2018
6465eb6
Increase tests.
Jan 25, 2018
505e8fc
Remove variable partner_id since i changed the validation of partners…
Jan 25, 2018
95e391a
Translated using Weblate (Spanish)
jimmybanegas Sep 25, 2018
6e0ad40
Translated using Weblate (German)
rschnapka Oct 10, 2018
5b8f230
[MIG] account_netting from v11 to v12
alexis-via Mar 19, 2019
804e1da
Fix net amount, using amount_residual instead of debit-credit
kittiu May 29, 2019
3b21180
Translated using Weblate (Portuguese (Brazil))
eduaparicio Jul 8, 2019
23f93a2
Translated using Weblate (Spanish)
josepmy Jul 23, 2019
fcf926f
Translated using Weblate (Portuguese)
pedrocs-exo Aug 14, 2019
99b58d9
Translated using Weblate (French)
svalaeys Oct 2, 2019
cea7551
Translated using Weblate (Croatian)
badbole Nov 12, 2019
5494d2b
[IMP] account_netting: black, isort
sergio-teruel Mar 19, 2020
b555344
[MIG] account_netting: Migration to v13.0
sergio-teruel Mar 19, 2020
5795dea
[13.0][MIG] account_document_reversal
kittiu Mar 27, 2020
bce1630
[13.0][FIX] Remove wrong account_document_reversal to fix the broken …
kittiu Apr 9, 2020
68cb07d
[MIG] account_netting to v14
alexis-via Nov 26, 2020
7043398
Translated using Weblate (Italian)
francesco-ooops Apr 12, 2022
9101062
Translated using Weblate (Croatian)
badbole Aug 23, 2022
ff77833
[MIG] account_netting: Migration to 15.0
victoralmau Oct 11, 2022
afc86ab
[UPD] Update account_netting.pot
Oct 26, 2022
cbda0d5
[UPD] README.rst
OCA-git-bot Oct 26, 2022
268f69e
Translated using Weblate (Spanish (Argentina))
ibuioli Oct 30, 2022
0a93bb8
[MIG] account_netting to v16
alexis-via Feb 22, 2023
fa8c205
[UPD] Update account_netting.pot
Nov 3, 2023
4a97413
[BOT] post-merge updates
OCA-git-bot Nov 3, 2023
93deda5
account_netting: fix and improve strings
alexis-via Nov 3, 2023
7477a9d
[UPD] Update account_netting.pot
Nov 5, 2023
57758ad
Update translation files
weblate Nov 5, 2023
0a18dc8
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 6, 2023
c4a8a29
Translated using Weblate (Spanish)
Ivorra78 Nov 6, 2023
2542ee6
Translated using Weblate (Italian)
mymage Nov 9, 2023
01e3360
Translated using Weblate (Swedish)
jakobkrabbe Feb 27, 2024
d4b15aa
Translated using Weblate (French)
Mar 2, 2024
ef69931
Translated using Weblate (Italian)
mymage Mar 12, 2024
af586a8
[IMP] account_netting: pre-commit auto fixes
May 15, 2024
d287533
[MIG] account_netting: Migration to 17.0
May 16, 2024
af325e3
[UPD] Update account_netting.pot
Jul 31, 2024
4c8f326
[BOT] post-merge updates
OCA-git-bot Jul 31, 2024
1853c88
Update translation files
weblate Jul 31, 2024
fb218a8
[IMP] account_netting: pre-commit auto fixes
alexis-via Feb 6, 2025
c769df4
[MIG] account_netting: migrate to v18
alexis-via Feb 6, 2025
fe7e930
[IMP] account_netting: date and ref chosen by the user in the wizard
alexis-via Feb 6, 2025
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
105 changes: 105 additions & 0 deletions account_netting/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
===============
Account netting
===============

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

.. |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/18.0/account_netting
: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-18-0/account-financial-tools-18-0-account_netting
: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=18.0
:alt: Try me on Runboat

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

This module allows to compensate the balance of a receivable account
with the balance of a payable account for the same partner, creating a
journal item that reflects this operation.

**WARNING**: This operation can be forbidden in your country by the
accounting regulations, so you should check current laws before using
it. For example, in Spain, this is not allowed at first instance, unless
you document well the operation from both parties.

**Table of contents**

.. contents::
:local:

Usage
=====

From any account journal entries view:

- Accounting/Journal Entries/Journal Items

select all the lines that corresponds to both AR/AP operations from the
same partner. Click on *Action > Compensate*. If the items don't
correspond to the same partner or they aren't AR/AP accounts, you will
get an error.

On contrary, a dialog box will be presented with the result of the
operation and a selection of the journal to register the operation. When
you click on the *Compensate* button, a journal entry is created with
the corresponding counterparts of the AR/AP operations.

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_netting%0Aversion:%2018.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
-------

* Tecnativa

Contributors
------------

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

- Pedro M. Baeza
- Vicent Cubells
- Víctor Martínez
- Marwan Behillil

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/18.0/account_netting>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions account_netting/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2015 Pedro M. Baeza
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from . import wizards
19 changes: 19 additions & 0 deletions account_netting/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2015 Pedro M. Baeza
# Copyright 2017 Vicent Cubells - Tecnativa <vicent.cubells@tecnativa.com>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Account netting",
"version": "18.0.1.0.0",
"summary": "Compensate AR/AP accounts from the same partner",
"category": "Accounting & Finance",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/account-financial-tools",
"depends": ["account"],
"data": [
"security/ir.model.access.csv",
"wizards/account_move_make_netting_view.xml",
],
"installable": True,
}
176 changes: 176 additions & 0 deletions account_netting/i18n/account_netting.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_netting
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \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_netting
#. odoo-python
#: code:addons/account_netting/wizards/account_move_make_netting.py:0
#, python-format
msgid "AR/AP netting"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__balance
msgid "Balance"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__balance_type
msgid "Balance Type"
msgstr ""

#. module: account_netting
#: model_terms:ir.ui.view,arch_db:account_netting.view_account_move_make_netting_form
msgid "Cancel"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__company_id
msgid "Company"
msgstr ""

#. module: account_netting
#: model:ir.actions.act_window,name:account_netting.act_account_move_make_netting
#: model_terms:ir.ui.view,arch_db:account_netting.view_account_move_make_netting_form
msgid "Compensate"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__create_uid
msgid "Created by"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__create_date
msgid "Created on"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__company_currency_id
msgid "Currency"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__display_name
msgid "Display Name"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__id
msgid "ID"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__journal_id
msgid "Journal"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__move_line_ids
msgid "Journal Items to Compensate"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__write_uid
msgid "Last Updated by"
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__write_date
msgid "Last Updated on"
msgstr ""

#. module: account_netting
#. odoo-python
#: code:addons/account_netting/wizards/account_move_make_netting.py:0
#, python-format
msgid ""
"Line '%(line)s' has account '%(account)s' which is not a payable nor a "
"receivable account."
msgstr ""

#. module: account_netting
#. odoo-python
#: code:addons/account_netting/wizards/account_move_make_netting.py:0
#, python-format
msgid "Line '%s' doesn't have a partner."
msgstr ""

#. module: account_netting
#. odoo-python
#: code:addons/account_netting/wizards/account_move_make_netting.py:0
#, python-format
msgid "Line '%s' is already reconciled."
msgstr ""

#. module: account_netting
#. odoo-python
#: code:addons/account_netting/wizards/account_move_make_netting.py:0
#, python-format
msgid "Line '%s' is not posted."
msgstr ""

#. module: account_netting
#: model:ir.model.fields,field_description:account_netting.field_account_move_make_netting__partner_id
msgid "Partner"
msgstr ""

#. module: account_netting
#. odoo-python
#: code:addons/account_netting/wizards/account_move_make_netting.py:0
#, python-format
msgid ""
"The 'Compensate' function is intended to balance operations on different "
"accounts for the same partner. The selected journal items have the same "
"account '%s', so you should use the 'Reconcile' function instead."
msgstr ""

#. module: account_netting
#. odoo-python
#: code:addons/account_netting/wizards/account_move_make_netting.py:0
#, python-format
msgid ""
"The selected journal items have different partners: %s. All the selected "
"journal items must have the same partner."
msgstr ""

#. module: account_netting
#: model_terms:ir.ui.view,arch_db:account_netting.view_account_move_make_netting_form
msgid ""
"This operation will generate a journal entry whose lines are counterpart of "
"the receivable/payable accounts selected, and reconcile each other, letting "
"this balance in the partner."
msgstr ""

#. module: account_netting
#: model:ir.model.fields.selection,name:account_netting.selection__account_move_make_netting__balance_type__pay
msgid "To pay"
msgstr ""

#. module: account_netting
#: model:ir.model.fields.selection,name:account_netting.selection__account_move_make_netting__balance_type__receive
msgid "To receive"
msgstr ""

#. module: account_netting
#: model:ir.model,name:account_netting.model_account_move_make_netting
msgid "Wizard to generate account moves for netting"
msgstr ""

#. module: account_netting
#. odoo-python
#: code:addons/account_netting/wizards/account_move_make_netting.py:0
#, python-format
msgid "You should select at least 2 journal items."
msgstr ""
Loading
Loading