mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[FIX][base_report_to_printer] - behaviour to print the report succesfully.
This commit is contained in:
committed by
Carlos Roca
parent
b1652beeda
commit
f280f844c8
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': "Report to printer",
|
'name': "Report to printer",
|
||||||
'version': '11.0.2.2.0',
|
'version': '11.0.2.3.0',
|
||||||
'category': 'Generic Modules/Base',
|
'category': 'Generic Modules/Base',
|
||||||
'author': "Agile Business Group & Domsense, Pegueroles SCP, NaN,"
|
'author': "Agile Business Group & Domsense, Pegueroles SCP, NaN,"
|
||||||
" LasLabs, Camptocamp, Odoo Community Association (OCA)",
|
" LasLabs, Camptocamp, Odoo Community Association (OCA)",
|
||||||
|
|||||||
@@ -129,6 +129,13 @@ class IrActionsReport(models.Model):
|
|||||||
return True
|
return True
|
||||||
return False
|
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):
|
def render_qweb_pdf(self, docids, data=None):
|
||||||
""" Generate a PDF and returns it.
|
""" Generate a PDF and returns it.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user