Skip to content
Browse files

[FIX] base: split _get_rendering_context to allow different models

Allowing to override the _get_rendering_context and call the new
function (_get_rendreing_context_model) with a different custom model
to render the html.

  • Loading branch information...
jpp-odoo committed Mar 25, 2019
1 parent 7e9a13a commit 1a6b00a87ba11157fd440dca8cf13970de1d796a
Showing with 4 additions and 0 deletions.
  1. +4 −0 odoo/addons/base/models/
@@ -728,6 +728,10 @@ def _get_rendering_context(self, docids, data):
report_model_name = 'report.%s' % self.report_name
report_model = self.env.get(report_model_name)

return self._get_rendering_context_model(docids, data, report_model)

def _get_rendering_context_model(self, docids, data, report_model):
data = data and dict(data) or {}

if report_model is not None:

0 comments on commit 1a6b00a

Please sign in to comment.
You can’t perform that action at this time.