diff --git a/pdf_report_with_watermark/models/res_company.py b/pdf_report_with_watermark/models/res_company.py index 4b33f04d1..32cabee14 100644 --- a/pdf_report_with_watermark/models/res_company.py +++ b/pdf_report_with_watermark/models/res_company.py @@ -43,3 +43,14 @@ class ResCompany(models.Model): background_image = fields.Image(string='Image', help='Select the image') rotating_angle = fields.Float(string='Angle of Rotation', help='Mention the angle of rotation') + +class BaseDocumentLayout(models.TransientModel): + _inherit = 'base.document.layout' + + watermark = fields.Boolean(related='company_id.watermark') + content_text = fields.Char(related='company_id.content_text') + watermark_type = fields.Selection(related='company_id.watermark_type') + color_picker = fields.Char(related='company_id.color_picker') + font_size = fields.Integer(related='company_id.font_size') + background_image = fields.Image(related='company_id.background_image') + rotating_angle = fields.Float(related='company_id.rotating_angle') \ No newline at end of file diff --git a/pdf_report_with_watermark/report/pdf_with_watermark.xml b/pdf_report_with_watermark/report/pdf_with_watermark.xml index e90e64c81..96019a4f6 100644 --- a/pdf_report_with_watermark/report/pdf_with_watermark.xml +++ b/pdf_report_with_watermark/report/pdf_with_watermark.xml @@ -1,7 +1,7 @@ -