Skip to content

[BUG][18.0] report_qweb_pdf_watermark: Wrong watermark used on invoice in multi-company environment #1134

@Larsq1

Description

@Larsq1

Module

report_qweb_pdf_watermark

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Affected versions: 18.0

Steps to reproduce the behavior:

  1. Multi-company environment where company A is the main company (base.main_company xml ID)
  2. Configure a watermark for company A and company B
  3. Switch to company B
  4. Create an invoice under company B
  5. Use the gear button to print the invoice (PDF)
    The generated document shows to watermark of company A

Expected behavior
The document has the watermark of company B as watermark

Additional context
Seems to occur only on the account.move model. If you use the 'Print' button, the correct watermark is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions