Merge pull request #311 from AlainVanUtterbeeck/9.0

[9.0][mis_builder] fix compatibility with report-print-send
pull/321/head
Stéphane Bidoul (ACSONE) 2017-05-31 10:09:34 +02:00 committed by GitHub
commit cf54e3b6ed
1 changed files with 6 additions and 0 deletions

View File

@ -25,3 +25,9 @@ class Report(models.Model):
return super(Report, self).get_pdf(cr, uid, ids, report_name,
html=html, data=data,
context=context)
@api.v8
def get_pdf(self, docids, report_name, html=None, data=None):
return self._model.get_pdf(self._cr, self._uid,
docids, report_name,
html=html, data=data, context=self._context)