odoo/odoo#208926

Created by fw-bot
Merged at 1490e3143f0482a732b9ec2961f78ad55f56a508

Statuses:

label
odoo-dev:saas-18.3-18.0-opw-4727408-report-background-image-issue-khsr-434277-fw
head
733f39b8684d425a52350eba0fbb136d4620a14d
merged
1 month ago by Khushi Srivastava (khsr)
odoo/odoo
18.0 #207029
saas-18.1 #208884
saas-18.2 #208908
saas-18.3 #208926
master #209032

[FW][FIX] web: report background image not displaying correctly

Steps to reproduce:
1. Settings > Navigate to Configure Document Layout
2. Under Layout Background, select Custom and upload an image.

Issue:
Background image was being cut off at the end. The image was not covering the entire div.

Solution:
Updated the .o_report_layout_background CSS to use background-size: contain
and remove 300px from background-position to ensure the image scales
proportionally and stays centered.

opw-4727408

Before FIX :
image
After FIX :
image

Forward-Port-Of: #207029