Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I would like to place an image in QWEB report that stretches right to the ends of the page on both sides . I tried setting Left and Right page margins to 0 in the Paper Format, but even then there is a small white space left on either side. Does any one know how this can be done?
For that you need to extend the report layout minimal_layout to control when the report body needs the container class or not, because that is the responsible for that issue or requirement that you have. You could do something like this:
<template id="custom_minimal_layout" inherit_id="report.minimal_layout">
<t t-set="need_container" t-value="False"/>
<body class="container" onload="subst()" t-if="need_container">
<body onload="subst()" t-if="not need_container">
Make sure to provide a valid condition to set the need_container var a True/False value when it's a normal report that need the container class or not. This was an example, you could do the same with t-attf-class and related but it's less clear for the example. The template "report.minimal_layout" is directly used by the report model get_html method.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/10/16, 3:35 PM|
|Seen: 1092 times|
|Last updated: 7/11/16, 4:21 AM|