diff --git a/account_financial_report/wizard/aged_partner_balance_wizard.py b/account_financial_report/wizard/aged_partner_balance_wizard.py index b7115e56..f69fba0c 100644 --- a/account_financial_report/wizard/aged_partner_balance_wizard.py +++ b/account_financial_report/wizard/aged_partner_balance_wizard.py @@ -4,7 +4,6 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models -from odoo.tools import pycompat from odoo.tools.safe_eval import safe_eval @@ -82,7 +81,7 @@ class AgedPartnerBalanceWizard(models.TransientModel): ) vals = action.read()[0] context1 = vals.get("context", {}) - if isinstance(context1, pycompat.string_types): + if isinstance(context1, str): context1 = safe_eval(context1) model = self.env["report_aged_partner_balance"] report = model.create(self._prepare_report_aged_partner_balance()) diff --git a/account_financial_report/wizard/general_ledger_wizard.py b/account_financial_report/wizard/general_ledger_wizard.py index 23bd5d59..fdf40d85 100644 --- a/account_financial_report/wizard/general_ledger_wizard.py +++ b/account_financial_report/wizard/general_ledger_wizard.py @@ -12,7 +12,6 @@ import time from odoo import _, api, fields, models from odoo.exceptions import ValidationError -from odoo.tools import pycompat from odoo.tools.safe_eval import safe_eval @@ -223,7 +222,7 @@ class GeneralLedgerReportWizard(models.TransientModel): action = self.env.ref("account_financial_report.action_report_general_ledger") action_data = action.read()[0] context1 = action_data.get("context", {}) - if isinstance(context1, pycompat.string_types): + if isinstance(context1, str): context1 = safe_eval(context1) model = self.env["report_general_ledger"] report = model.create(self._prepare_report_general_ledger()) diff --git a/account_financial_report/wizard/journal_ledger_wizard.py b/account_financial_report/wizard/journal_ledger_wizard.py index 42874ed2..1e9aa5a5 100644 --- a/account_financial_report/wizard/journal_ledger_wizard.py +++ b/account_financial_report/wizard/journal_ledger_wizard.py @@ -2,7 +2,6 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import _, api, fields, models -from odoo.tools import pycompat from odoo.tools.safe_eval import safe_eval @@ -91,7 +90,7 @@ class JournalLedgerReportWizard(models.TransientModel): action = self.env.ref("account_financial_report.action_report_journal_ledger") vals = action.read()[0] context1 = vals.get("context", {}) - if isinstance(context1, pycompat.string_types): + if isinstance(context1, str): context1 = safe_eval(context1) model = self.env["report_journal_ledger"] report = model.create(self._prepare_report_journal_ledger()) diff --git a/account_financial_report/wizard/open_items_wizard.py b/account_financial_report/wizard/open_items_wizard.py index 05563edd..d3f26c02 100644 --- a/account_financial_report/wizard/open_items_wizard.py +++ b/account_financial_report/wizard/open_items_wizard.py @@ -4,7 +4,6 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models -from odoo.tools import pycompat from odoo.tools.safe_eval import safe_eval @@ -101,7 +100,7 @@ class OpenItemsReportWizard(models.TransientModel): action = self.env.ref("account_financial_report.action_report_open_items") vals = action.read()[0] context1 = vals.get("context", {}) - if isinstance(context1, pycompat.string_types): + if isinstance(context1, str): context1 = safe_eval(context1) model = self.env["report_open_items"] report = model.create(self._prepare_report_open_items()) diff --git a/account_financial_report/wizard/trial_balance_wizard.py b/account_financial_report/wizard/trial_balance_wizard.py index abfb284a..dd74a863 100644 --- a/account_financial_report/wizard/trial_balance_wizard.py +++ b/account_financial_report/wizard/trial_balance_wizard.py @@ -6,7 +6,6 @@ from odoo import _, api, fields, models from odoo.exceptions import UserError, ValidationError -from odoo.tools import pycompat from odoo.tools.safe_eval import safe_eval @@ -201,7 +200,7 @@ class TrialBalanceReportWizard(models.TransientModel): action = self.env.ref("account_financial_report.action_report_trial_balance") vals = action.read()[0] context1 = vals.get("context", {}) - if isinstance(context1, pycompat.string_types): + if isinstance(context1, str): context1 = safe_eval(context1) model = self.env["report_trial_balance"] report = model.create(self._prepare_report_trial_balance()) diff --git a/account_financial_report/wizard/vat_report_wizard.py b/account_financial_report/wizard/vat_report_wizard.py index 08bdee88..337a8b02 100644 --- a/account_financial_report/wizard/vat_report_wizard.py +++ b/account_financial_report/wizard/vat_report_wizard.py @@ -3,7 +3,6 @@ from odoo import _, api, fields, models from odoo.exceptions import ValidationError -from odoo.tools import pycompat from odoo.tools.safe_eval import safe_eval @@ -73,7 +72,7 @@ class VATReportWizard(models.TransientModel): action = self.env.ref("account_financial_report.action_report_vat_report") vals = action.read()[0] context1 = vals.get("context", {}) - if isinstance(context1, pycompat.string_types): + if isinstance(context1, str): context1 = safe_eval(context1) model = self.env["report_vat_report"] report = model.create(self._prepare_vat_report())