[13.0][MIG] report_context

This commit is contained in:
Jaime Arroyo
2020-09-30 12:30:43 +02:00
committed by Pierrick Brun
parent 4d8f393d1e
commit 99bb8ac22c
5 changed files with 26 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
# Copyright 2019 Creu Blanca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
from odoo import fields, models
from odoo.tools.safe_eval import safe_eval
@@ -29,13 +29,11 @@ class IrActionsReport(models.Model):
context.update(self.env.context)
return context
@api.multi
def render(self, res_ids, data=None):
return super(IrActionsReport, self.with_context(self._get_context())).render(
res_ids, data=data
)
@api.noguess
def report_action(self, docids, data=None, config=True):
return super(
IrActionsReport, self.with_context(self._get_context())