OCA reporting engine fork for dev and update.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
520 B

  1. # -*- coding: utf-8 -*-
  2. # © 2016 Therp BV <http://therp.nl>
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from openerp import fields, models
  5. class IrActionsReportXml(models.Model):
  6. _inherit = 'ir.actions.report.xml'
  7. pdf_watermark = fields.Binary('Watermark')
  8. pdf_watermark_expression = fields.Char(
  9. 'Watermark expression', help='An expression yielding the base64 '
  10. 'encoded data to be used as watermark. \n'
  11. 'You have access to variables `env` and `docs`')