mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[13.0][MIG] report_context
This commit is contained in:
committed by
Pierrick Brun
parent
4d8f393d1e
commit
99bb8ac22c
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user