Skip to content

Commit

Permalink
Merge PR #288 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by JordiBForgeFlow
  • Loading branch information
OCA-git-bot committed Jan 22, 2020
2 parents cbc4bff + c23868d commit 430cac3
Show file tree
Hide file tree
Showing 14 changed files with 693 additions and 0 deletions.
88 changes: 88 additions & 0 deletions account_skip_bank_reconciliation/README.rst
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.
3 changes: 3 additions & 0 deletions account_skip_bank_reconciliation/__init__.py
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
18 changes: 18 additions & 0 deletions account_skip_bank_reconciliation/__manifest__.py
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,
}
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 ""

39 changes: 39 additions & 0 deletions account_skip_bank_reconciliation/i18n/nl_NL.po
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"
4 changes: 4 additions & 0 deletions account_skip_bank_reconciliation/models/__init__.py
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 account_skip_bank_reconciliation/models/account_account.py
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 account_skip_bank_reconciliation/models/reconciliation_widget.py
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
1 change: 1 addition & 0 deletions account_skip_bank_reconciliation/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Miquel Raïch <miquel.raich@eficent.com>
7 changes: 7 additions & 0 deletions account_skip_bank_reconciliation/readme/DESCRIPTION.rst
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.
5 changes: 5 additions & 0 deletions account_skip_bank_reconciliation/readme/USAGE.rst
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.
Loading

0 comments on commit 430cac3

Please sign in to comment.