[FIX][base_report_to_printer] - behaviour to print the report succesfully.

This commit is contained in:
Oscar Ulises Garza Cordova
2018-06-22 08:38:29 -05:00
committed by Carlos Roca
parent b1652beeda
commit f280f844c8
2 changed files with 8 additions and 1 deletions

View File

@@ -129,6 +129,13 @@ class IrActionsReport(models.Model):
return True
return False
@api.noguess
def report_action(self, docids, data=None, config=True):
res = super().report_action(docids, data=data, config=config)
if not res.get('id'):
res['id'] = self.id
return res
def render_qweb_pdf(self, docids, data=None):
""" Generate a PDF and returns it.