diff --git a/account_reconcile_restrict_partner_mismatch/__init__.py b/account_reconcile_restrict_partner_mismatch/__init__.py index 7a6c1b03..bf588bc8 100755 --- a/account_reconcile_restrict_partner_mismatch/__init__.py +++ b/account_reconcile_restrict_partner_mismatch/__init__.py @@ -1,4 +1,2 @@ -# -*- coding: utf-8 -*- - from . import models from . import report diff --git a/account_reconcile_restrict_partner_mismatch/__manifest__.py b/account_reconcile_restrict_partner_mismatch/__manifest__.py index d09c1885..78764539 100644 --- a/account_reconcile_restrict_partner_mismatch/__manifest__.py +++ b/account_reconcile_restrict_partner_mismatch/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2019 Camptocamp SA # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). @@ -6,7 +5,7 @@ 'name': 'Reconcile restrict partner mismatch', 'summary': 'Restrict reconciliation on receivable ' 'and payable accounts to the same partner', - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'depends': ['account'], 'author': 'Camptocamp, Odoo Community Association (OCA)', 'website': 'http://www.github.com/OCA/account-reconcile', diff --git a/account_reconcile_restrict_partner_mismatch/models/__init__.py b/account_reconcile_restrict_partner_mismatch/models/__init__.py index 0c1006db..8795b3be 100755 --- a/account_reconcile_restrict_partner_mismatch/models/__init__.py +++ b/account_reconcile_restrict_partner_mismatch/models/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import account_move_line diff --git a/account_reconcile_restrict_partner_mismatch/models/account_move_line.py b/account_reconcile_restrict_partner_mismatch/models/account_move_line.py index 6e27cee8..8ab5f13e 100644 --- a/account_reconcile_restrict_partner_mismatch/models/account_move_line.py +++ b/account_reconcile_restrict_partner_mismatch/models/account_move_line.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2019 Camptocamp SA # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). @@ -14,8 +13,7 @@ class AccountMoveLine(models.Model): def reconcile(self, writeoff_acc_id=False, writeoff_journal_id=False): if (config['test_enable'] and not self.env.context.get('test_partner_mismatch')): - return super(AccountMoveLine, self).reconcile( - writeoff_acc_id, writeoff_journal_id) + return super().reconcile(writeoff_acc_id, writeoff_journal_id) # to be consistent with parent method if not self: @@ -27,5 +25,5 @@ class AccountMoveLine(models.Model): if len(partners) > 1: raise UserError(_('The partner has to be the same on all' ' lines for receivable and payable accounts!')) - return super(AccountMoveLine, self).reconcile( + return super().reconcile( writeoff_acc_id, writeoff_journal_id) diff --git a/account_reconcile_restrict_partner_mismatch/report/__init__.py b/account_reconcile_restrict_partner_mismatch/report/__init__.py index 19a75438..f32b29ee 100644 --- a/account_reconcile_restrict_partner_mismatch/report/__init__.py +++ b/account_reconcile_restrict_partner_mismatch/report/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import report_reconciled_lines diff --git a/account_reconcile_restrict_partner_mismatch/report/report_reconciled_lines.py b/account_reconcile_restrict_partner_mismatch/report/report_reconciled_lines.py index 8b42f749..ac2cfc57 100644 --- a/account_reconcile_restrict_partner_mismatch/report/report_reconciled_lines.py +++ b/account_reconcile_restrict_partner_mismatch/report/report_reconciled_lines.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2019 Camptocamp SA # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). diff --git a/account_reconcile_restrict_partner_mismatch/tests/test_reconciliation.py b/account_reconcile_restrict_partner_mismatch/tests/test_reconciliation.py index 360cdf18..a21c6af9 100644 --- a/account_reconcile_restrict_partner_mismatch/tests/test_reconciliation.py +++ b/account_reconcile_restrict_partner_mismatch/tests/test_reconciliation.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2019 Camptocamp SA # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). @@ -9,7 +8,7 @@ from odoo.exceptions import UserError class TestReconciliation(AccountingTestCase): def setUp(self): - super(TestReconciliation, self).setUp() + super().setUp() self.env = self.env(context=dict( self.env.context, tracking_disable=True, test_partner_mismatch=True)