-
-
Notifications
You must be signed in to change notification settings - Fork 366
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 JordiBForgeFlow
- Loading branch information
Showing
14 changed files
with
693 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,88 @@ | ||
================================ | ||
Account Skip Bank Reconciliation | ||
================================ | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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/12.0/account_skip_bank_reconciliation | ||
: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-12-0/account-reconcile-12-0-account_skip_bank_reconciliation | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/98/12.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module allows to exclude from bank statement reconciliation | ||
all journal items of a specific reconcilable account. | ||
|
||
Usually, you would want to that in accounts like the | ||
`Goods Received Not Invoiced`, which are required to be reconcilable | ||
to be able to have proper traceability in stock received but | ||
their reconciliation is done using the `account_mass_reconcile` module. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
#. Go to `Invoicing / Configuration / Accounting / Charts of Accounts` | ||
and open a reconcilable account. | ||
#. In that account, select or not the `Exclude from Bank Reconciliation` option. | ||
|
||
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 smashing it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/account-reconcile/issues/new?body=module:%20account_skip_bank_reconciliation%0Aversion:%2012.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 | ||
~~~~~~~ | ||
|
||
* Eficent | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Miquel Raïch <miquel.raich@eficent.com> | ||
|
||
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/12.0/account_skip_bank_reconciliation>`_ 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,3 @@ | ||
# License AGPL-3.0 or later (https://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,18 @@ | ||
# Copyright 2018 Eficent Business and IT Consulting Services S.L. | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "Account Skip Bank Reconciliation", | ||
"summary": "Allows to exclude from bank statement reconciliation " | ||
"all journal items of a reconcilable account", | ||
"version": "12.0.1.0.0", | ||
"depends": ["account"], | ||
"author": "Eficent, Odoo Community Association (OCA)", | ||
"website": "http://www.github.com/OCA/account-reconcile", | ||
"category": "Finance", | ||
"data": [ | ||
"views/account_view.xml", | ||
], | ||
'license': 'AGPL-3', | ||
'installable': True, | ||
} |
35 changes: 35 additions & 0 deletions
35
account_skip_bank_reconciliation/i18n/account_skip_bank_reconciliation.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,35 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_skip_bank_reconciliation | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.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_skip_bank_reconciliation | ||
#: model:ir.model,name:account_skip_bank_reconciliation.model_account_account | ||
msgid "Account" | ||
msgstr "" | ||
|
||
#. module: account_skip_bank_reconciliation | ||
#: model:ir.model,name:account_skip_bank_reconciliation.model_account_bank_statement_line | ||
msgid "Bank Statement Line" | ||
msgstr "" | ||
|
||
#. module: account_skip_bank_reconciliation | ||
#: model:ir.model.fields,help:account_skip_bank_reconciliation.field_account_account_exclude_bank_reconcile | ||
msgid "Check this box if the journal items of this account should not appear in the list of journal items to match a statement line." | ||
msgstr "" | ||
|
||
#. module: account_skip_bank_reconciliation | ||
#: model:ir.model.fields,field_description:account_skip_bank_reconciliation.field_account_account_exclude_bank_reconcile | ||
msgid "Exclude from Bank Reconciliation" | ||
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,39 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_skip_bank_reconciliation | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2019-07-15 09:43+0000\n" | ||
"Last-Translator: Cas Vissers <c.vissers@brahoo.nl>\n" | ||
"Language-Team: none\n" | ||
"Language: nl_NL\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" | ||
"X-Generator: Weblate 3.7.1\n" | ||
|
||
#. module: account_skip_bank_reconciliation | ||
#: model:ir.model,name:account_skip_bank_reconciliation.model_account_account | ||
msgid "Account" | ||
msgstr "Grootboek" | ||
|
||
#. module: account_skip_bank_reconciliation | ||
#: model:ir.model,name:account_skip_bank_reconciliation.model_account_bank_statement_line | ||
msgid "Bank Statement Line" | ||
msgstr "Bankafschriftregel" | ||
|
||
#. module: account_skip_bank_reconciliation | ||
#: model:ir.model.fields,help:account_skip_bank_reconciliation.field_account_account_exclude_bank_reconcile | ||
msgid "Check this box if the journal items of this account should not appear in the list of journal items to match a statement line." | ||
msgstr "" | ||
"Vink aan wanneer boekingsregels uit dit grootboek niet zichtbaar mogen " | ||
"worden bij het verwerken van een bankafschrift regel." | ||
|
||
#. module: account_skip_bank_reconciliation | ||
#: model:ir.model.fields,field_description:account_skip_bank_reconciliation.field_account_account_exclude_bank_reconcile | ||
msgid "Exclude from Bank Reconciliation" | ||
msgstr "Sluit uit in bankafschrift" |
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,4 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import account_account | ||
from . import reconciliation_widget |
15 changes: 15 additions & 0 deletions
15
account_skip_bank_reconciliation/models/account_account.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,15 @@ | ||
# © 2018 Eficent Business and IT Consulting Services S.L. (www.eficent.com) | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class AccountAccount(models.Model): | ||
_inherit = "account.account" | ||
|
||
exclude_bank_reconcile = fields.Boolean( | ||
string='Exclude from Bank Reconciliation', | ||
default=False, | ||
help="Check this box if the journal items of this account " | ||
"should not appear in the list of journal items to match " | ||
"a statement line.") |
31 changes: 31 additions & 0 deletions
31
account_skip_bank_reconciliation/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,31 @@ | ||
# © 2018-19 Eficent Business and IT Consulting Services S.L. (www.eficent.com) | ||
# License AGPL-3.0 or later (https://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): | ||
domain = super()._domain_move_lines_for_reconciliation( | ||
st_line, aml_accounts, partner_id, | ||
excluded_ids=excluded_ids, search_str=search_str) | ||
domain = expression.AND([domain, [ | ||
("account_id.exclude_bank_reconcile", "!=", True)]]) | ||
return domain | ||
|
||
@api.model | ||
def _domain_move_lines_for_manual_reconciliation( | ||
self, account_id, partner_id=False, | ||
excluded_ids=None, search_str=False): | ||
domain = super()._domain_move_lines_for_manual_reconciliation( | ||
account_id, partner_id=partner_id, | ||
excluded_ids=excluded_ids, search_str=search_str) | ||
domain = expression.AND([domain, [ | ||
("account_id.exclude_bank_reconcile", "!=", True)]]) | ||
return domain |
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 @@ | ||
* Miquel Raïch <miquel.raich@eficent.com> |
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 @@ | ||
This module allows to exclude from bank statement reconciliation | ||
all journal items of a specific reconcilable account. | ||
|
||
Usually, you would want to that in accounts like the | ||
`Goods Received Not Invoiced`, which are required to be reconcilable | ||
to be able to have proper traceability in stock received but | ||
their reconciliation is done using the `account_mass_reconcile` module. |
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 @@ | ||
To use this module, you need to: | ||
|
||
#. Go to `Invoicing / Configuration / Accounting / Charts of Accounts` | ||
and open a reconcilable account. | ||
#. In that account, select or not the `Exclude from Bank Reconciliation` option. |
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.