[ADD] report_label

This commit is contained in:
Ivàn Todorovich
2020-11-19 10:34:23 -03:00
committed by Stefan Rijnhart
parent 1b1e9a4d9f
commit c6f34b6609
25 changed files with 549 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
from odoo import api, models
class IrActionsReport(models.Model):
_inherit = "ir.actions.report"
@api.model
def get_paperformat(self):
# Allow to define paperformat via context
res = super().get_paperformat()
if self.env.context.get("paperformat_id"):
res = self.env["report.paperformat"].browse(
self.env.context.get("paperformat_id"))
return res