-
-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by etobella
- Loading branch information
Showing
16 changed files
with
698 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
======================================= | ||
Account Reconciliation Widget Limit AML | ||
======================================= | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:96fd13238c3cfb634b30494c1fde31595c3879f1ba3bd30a1c298e22d4194a74 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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--reconcile-lightgray.png?logo=github | ||
:target: https://github.com/OCA/account-reconcile/tree/14.0/account_reconciliation_widget_limit_aml | ||
:alt: OCA/account-reconcile | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/account-reconcile-14-0/account-reconcile-14-0-account_reconciliation_widget_limit_aml | ||
: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-reconcile&target_branch=14.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module adds the option to filter all the account move lines by date in the reconciliation view, not only those coming from payments. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
Go to Invoicing --> Configuration --> Settings | ||
Check the "Filter all account move lines" checkbox. When checked, all the account move lines will be filtered by the selected date. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-reconcile/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-reconcile/issues/new?body=module:%20account_reconciliation_widget_limit_aml%0Aversion:%2014.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 | ||
~~~~~~~ | ||
|
||
* Sygel | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Valentin Vinagre <[email protected]> | ||
* Manuel Regidor <[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-reconcile <https://github.com/OCA/account-reconcile/tree/14.0/account_reconciliation_widget_limit_aml>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright 2023 Valentin Vinagre <[email protected]> | ||
# Copyright 2023 Manuel Regidor <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Copyright 2023 Valentin Vinagre <[email protected]> | ||
# Copyright 2023 Manuel Regidor <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "Account Reconciliation Widget Limit AML", | ||
"version": "15.0.1.0.0", | ||
"category": "Accounting", | ||
"license": "AGPL-3", | ||
"summary": "Filter all account move lines in reconciliation view", | ||
"author": "Sygel, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/account-reconcile", | ||
"depends": ["account_reconciliation_widget"], | ||
"data": ["views/res_config_settings_views.xml"], | ||
"installable": True, | ||
} |
56 changes: 56 additions & 0 deletions
56
account_reconciliation_widget_limit_aml/i18n/account_reconciliation_widget_limit_aml.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_reconciliation_widget_limit_aml | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.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_reconciliation_widget_limit_aml | ||
#: model:ir.model,name:account_reconciliation_widget_limit_aml.model_account_reconciliation_widget | ||
msgid "Account Reconciliation widget" | ||
msgstr "" | ||
|
||
#. module: account_reconciliation_widget_limit_aml | ||
#: model:ir.model,name:account_reconciliation_widget_limit_aml.model_res_company | ||
msgid "Companies" | ||
msgstr "" | ||
|
||
#. module: account_reconciliation_widget_limit_aml | ||
#: model:ir.model,name:account_reconciliation_widget_limit_aml.model_res_config_settings | ||
msgid "Config Settings" | ||
msgstr "" | ||
|
||
#. module: account_reconciliation_widget_limit_aml | ||
#: model:ir.model.fields,field_description:account_reconciliation_widget_limit_aml.field_account_reconciliation_widget__display_name | ||
#: model:ir.model.fields,field_description:account_reconciliation_widget_limit_aml.field_res_company__display_name | ||
#: model:ir.model.fields,field_description:account_reconciliation_widget_limit_aml.field_res_config_settings__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: account_reconciliation_widget_limit_aml | ||
#: model:ir.model.fields,field_description:account_reconciliation_widget_limit_aml.field_res_company__account_bank_reconciliation_start_all_aml | ||
#: model:ir.model.fields,field_description:account_reconciliation_widget_limit_aml.field_res_config_settings__account_bank_reconciliation_start_all_aml | ||
msgid "Filter all account move lines" | ||
msgstr "" | ||
|
||
#. module: account_reconciliation_widget_limit_aml | ||
#: model:ir.model.fields,field_description:account_reconciliation_widget_limit_aml.field_account_reconciliation_widget__id | ||
#: model:ir.model.fields,field_description:account_reconciliation_widget_limit_aml.field_res_company__id | ||
#: model:ir.model.fields,field_description:account_reconciliation_widget_limit_aml.field_res_config_settings__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: account_reconciliation_widget_limit_aml | ||
#: model:ir.model.fields,field_description:account_reconciliation_widget_limit_aml.field_account_reconciliation_widget____last_update | ||
#: model:ir.model.fields,field_description:account_reconciliation_widget_limit_aml.field_res_company____last_update | ||
#: model:ir.model.fields,field_description:account_reconciliation_widget_limit_aml.field_res_config_settings____last_update | ||
msgid "Last Modified on" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright 2023 Valentin Vinagre <[email protected]> | ||
# Copyright 2023 Manuel Regidor <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import res_company | ||
from . import res_config_settings | ||
from . import reconciliation_widget |
41 changes: 41 additions & 0 deletions
41
account_reconciliation_widget_limit_aml/models/reconciliation_widget.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright 2023 Valentin Vinagre <[email protected]> | ||
# Copyright 2023 Manuel Regidor <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import api, models | ||
from odoo.osv import expression | ||
|
||
|
||
class AccountReconciliation(models.AbstractModel): | ||
_inherit = "account.reconciliation.widget" | ||
|
||
@api.model | ||
def _domain_move_lines_for_reconciliation( | ||
self, | ||
st_line, | ||
aml_accounts, | ||
partner_id, | ||
excluded_ids=None, | ||
search_str=False, | ||
mode="rp", | ||
): | ||
domain = super()._domain_move_lines_for_reconciliation( | ||
st_line, aml_accounts, partner_id, excluded_ids, search_str, mode | ||
) | ||
if ( | ||
st_line.company_id.account_bank_reconciliation_start_all_aml | ||
and st_line.company_id.account_bank_reconciliation_start | ||
): | ||
domain = expression.AND( | ||
[ | ||
domain, | ||
[ | ||
( | ||
"date", | ||
">=", | ||
st_line.company_id.account_bank_reconciliation_start, | ||
) | ||
], | ||
] | ||
) | ||
return domain |
13 changes: 13 additions & 0 deletions
13
account_reconciliation_widget_limit_aml/models/res_company.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright 2023 Valentin Vinagre <[email protected]> | ||
# Copyright 2023 Manuel Regidor <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ResCompany(models.Model): | ||
_inherit = "res.company" | ||
|
||
account_bank_reconciliation_start_all_aml = fields.Boolean( | ||
string="Filter all account move lines" | ||
) |
13 changes: 13 additions & 0 deletions
13
account_reconciliation_widget_limit_aml/models/res_config_settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright 2023 Valentin Vinagre <[email protected]> | ||
# Copyright 2023 Manuel Regidor <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ResConfigSettings(models.TransientModel): | ||
_inherit = "res.config.settings" | ||
|
||
account_bank_reconciliation_start_all_aml = fields.Boolean( | ||
related="company_id.account_bank_reconciliation_start_all_aml", readonly=False | ||
) |
2 changes: 2 additions & 0 deletions
2
account_reconciliation_widget_limit_aml/readme/CONTRIBUTORS.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* Valentin Vinagre <[email protected]> | ||
* Manuel Regidor <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This module adds the option to filter all the account move lines by date in the reconciliation view, not only those coming from payments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Go to Invoicing --> Configuration --> Settings | ||
Check the "Filter all account move lines" checkbox. When checked, all the account move lines will be filtered by the selected date. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.