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_netting: Migration to 17.0 #1883

Merged
merged 39 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9fdfcf1
account_netting: AR/AP netting
pedrobaeza Aug 7, 2015
f80073f
account_netting: Migration to 10.0
cubells Oct 13, 2017
22474cc
Migrate account_netting to 11.0.
Jan 25, 2018
d8a6a6e
Increase tests.
Jan 25, 2018
b9497b9
Remove variable partner_id since i changed the validation of partners…
Jan 25, 2018
c6d951d
Translated using Weblate (Spanish)
jimmybanegas Sep 25, 2018
2f39679
Translated using Weblate (German)
rschnapka Oct 10, 2018
0844f58
[MIG] account_netting from v11 to v12
alexis-via Mar 19, 2019
708538a
Fix net amount, using amount_residual instead of debit-credit
kittiu May 29, 2019
1a64ffb
Translated using Weblate (Portuguese (Brazil))
eduaparicio Jul 8, 2019
a427e2a
Translated using Weblate (Spanish)
josepmy Jul 23, 2019
0dc9eed
Translated using Weblate (Portuguese)
pedrocs-exo Aug 14, 2019
b1c1ce6
Translated using Weblate (French)
svalaeys Oct 2, 2019
8d184d7
Translated using Weblate (Croatian)
badbole Nov 12, 2019
3578467
[IMP] account_netting: black, isort
sergio-teruel Mar 19, 2020
a9f684e
[MIG] account_netting: Migration to v13.0
sergio-teruel Mar 19, 2020
186fcff
[13.0][MIG] account_document_reversal
kittiu Mar 27, 2020
6cbb481
[13.0][FIX] Remove wrong account_document_reversal to fix the broken …
kittiu Apr 9, 2020
c97daff
[MIG] account_netting to v14
alexis-via Nov 26, 2020
86e81b0
Translated using Weblate (Italian)
francesco-ooops Apr 12, 2022
8e5fdcb
Translated using Weblate (Croatian)
badbole Aug 23, 2022
ce75fd4
[MIG] account_netting: Migration to 15.0
victoralmau Oct 11, 2022
d4abfe5
[UPD] Update account_netting.pot
Oct 26, 2022
c190f94
[UPD] README.rst
OCA-git-bot Oct 26, 2022
49d963f
Translated using Weblate (Spanish (Argentina))
ibuioli Oct 30, 2022
a2fb826
[MIG] account_netting to v16
alexis-via Feb 22, 2023
e92bd32
[UPD] Update account_netting.pot
Nov 3, 2023
7b84699
[BOT] post-merge updates
OCA-git-bot Nov 3, 2023
08abe75
account_netting: fix and improve strings
alexis-via Nov 3, 2023
5a0431e
[UPD] Update account_netting.pot
Nov 5, 2023
72a35cc
Update translation files
weblate Nov 5, 2023
33c9e37
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 6, 2023
0cdc357
Translated using Weblate (Spanish)
Ivorra78 Nov 6, 2023
d46a439
Translated using Weblate (Italian)
mymage Nov 9, 2023
38283b8
Translated using Weblate (Swedish)
jakobkrabbe Feb 27, 2024
432574a
Translated using Weblate (French)
Mar 2, 2024
5ca8ef1
Translated using Weblate (Italian)
mymage Mar 12, 2024
59d59f5
[IMP] account_netting: pre-commit auto fixes
May 15, 2024
c3c4a39
[MIG] account_netting: Migration to 17.0
May 16, 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
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:49b705c28fc29caf2d9f95fbf90eda34e6903b1c817112e31500a765ca66eda1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/17.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-17-0/account-financial-tools-17-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=17.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:%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
-------

* 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/17.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 <[email protected]>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Account netting",
"version": "17.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,
}
181 changes: 181 additions & 0 deletions account_netting/i18n/account_netting.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_netting
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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____last_update
msgid "Last Modified on"
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