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.
The simple answer is yes. You can add css to elements in QWeb reports so you can also add images in it for example.
You can do anything you'd like with CSS so just host an image somewhere and add an element to your report which you style as you'd like.
Update: Here is a sample.Place this under /addons/sale/views/report_saleorder.xml wherever you want the watermark to be printed.
<div class="watermark" style="position:absolute;opacity:0.25;font-size:3em;width:100%;text-align:center;z-index:1000;">
Example in the layout:
To include a watermark in every page of the generated PDF, you can modify either the CSS which is used in every page, or modify the general template to include the watermark. By default, I believe the CSS class is 'page', and the XML ID of the view creating the header for external PDFs is 'external_layout_header'
If desired, you can add a field for each object , say, 'watermark_content', and then use a t-if as above to display the content. Eg:
<div style="opacity:25%;width:100%;color:#CCC;z-index:1000;text-align:center;" t-field="o.watermark_content"/>
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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: 1/11/15, 6:14 AM|
|Seen: 3368 times|
|Last updated: 2/8/16, 3:16 PM|