|
@ -12,7 +12,6 @@ import time |
|
|
|
|
|
|
|
|
from odoo import _, api, fields, models |
|
|
from odoo import _, api, fields, models |
|
|
from odoo.exceptions import ValidationError |
|
|
from odoo.exceptions import ValidationError |
|
|
from odoo.tools import pycompat |
|
|
|
|
|
from odoo.tools.safe_eval import safe_eval |
|
|
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 = self.env.ref("account_financial_report.action_report_general_ledger") |
|
|
action_data = action.read()[0] |
|
|
action_data = action.read()[0] |
|
|
context1 = action_data.get("context", {}) |
|
|
context1 = action_data.get("context", {}) |
|
|
if isinstance(context1, pycompat.string_types): |
|
|
|
|
|
|
|
|
if isinstance(context1, str): |
|
|
context1 = safe_eval(context1) |
|
|
context1 = safe_eval(context1) |
|
|
model = self.env["report_general_ledger"] |
|
|
model = self.env["report_general_ledger"] |
|
|
report = model.create(self._prepare_report_general_ledger()) |
|
|
report = model.create(self._prepare_report_general_ledger()) |
|
|