Skip to content

Commit

Permalink
[MIG] *_clearing_account: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NL66278 committed Sep 25, 2023
1 parent ab86552 commit 82e5da0
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion account_statement_clearing_account/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Known issues
============
This module does not come with its own tests because it depends on a
statement filter being installed. Instead, it is tested in
`account_bank_statement_import_adyen`
`account_statement_import_adyen`

**Table of contents**

Expand Down
5 changes: 3 additions & 2 deletions account_statement_clearing_account/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Copyright 2017 Opener BV (<https://opener.amsterdam>)
# Copyright 2020 Vanmoof BV (<https://www.vanmoof.com>)
# Copyright 2023 Therp BV <https://therp.nl>.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Reconcile entries from pseudo bank statements",
"version": "13.0.1.0.0",
"author": "Opener B.V., Vanmoof BV, Odoo Community Association (OCA)",
"version": "16.0.1.0.0",
"author": "Opener B.V., Vanmoof BV, Therp BV, Odoo Community Association (OCA)",
"category": "Banking addons",
"website": "https://github.com/OCA/bank-statement-import",
"license": "AGPL-3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ def unreconcile_clearing_account(self):
def button_reopen(self):
"""When setting the statement back to draft, unreconcile the
reconciliation on the clearing account"""
res = super(BankStatement, self).button_reopen()
res = super().button_reopen()
for statement in self:
statement.unreconcile_clearing_account()
return res

def button_confirm_bank(self):
"""When confirming the statement, trigger the reconciliation of
the lines on the clearing account (if applicable)"""
res = super(BankStatement, self).button_confirm_bank()
res = super().button_confirm_bank()
for statement in self:
statement.reconcile_clearing_account()
return res
2 changes: 1 addition & 1 deletion account_statement_clearing_account/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Known issues
============
This module does not come with its own tests because it depends on a
statement filter being installed. Instead, it is tested in
`account_bank_statement_import_adyen`
`account_statement_import_adyen`
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright 2017 Opener BV <https://opener.amsterdam>
# Copyright 2020 Vanmoof BV <https://www.vanmoof.com>
# Copyright 2015-2021 Therp BV <https://therp.nl>)
# Copyright 2015-2023 Therp BV <https://therp.nl>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo.tests.common import SavepointCase

Expand All @@ -18,7 +18,7 @@ def setUpClass(cls):
"currency_id": cls.env.ref("base.USD").id,
}
)
cls.partner_customer = cls.env["res.partner"].create({"name": "cutomer"})
cls.partner_customer = cls.env["res.partner"].create({"name": "customer"})
cls.partner_provider = cls.env["res.partner"].create({"name": "provider"})
# Enable reconcilation on the default journal account to trigger
# the functionality from account_bank_statement_clearing_account
Expand Down

This file was deleted.

0 comments on commit 82e5da0

Please sign in to comment.