Odoo Help


1 Answer
Hardik Patel
11‏/3‏/2019 3:51 ص

You can find the source code(odoo v12) for header in web->views->report_templates.xml.

Sameer Ahmad
11‏/3‏/2019 4:58 ص

Thanks Hardik i found it already and I tried replacing the header image but didn't seem to work. Don't know what i'm doing wrong. Below is the code. If you know anything please help or point the errors.

<template id="external_layout_standard_chrims" inherit_id="external_layout_standard">

<xpath expr="//div[@class='col-3 mb4']" position="replace">

<div class="col-3 mb4">

<img t-att-src="data:image/jpg;base64,account_analytic_account.invLogo" style="max-height: 45px;" alt="Logo"/>




Hardik Patel
11‏/3‏/2019 5:46 ص
Sameer Ahmad
12‏/3‏/2019 1:07 ص

Thanks for the link but that is still unclear to me. My case here is that i declared a custom field in a model and asking the user to upload an image and now i want that image to appear in my qweb report. I have searched a lot and tried a few ways but nothing worked maybe it's because the db is not storing the image i mean when i view the data in the column it shows as empty but then again i can view the image in the ui. I tried using store=True, still no luck! Do you know why is this happening and also tell me how to refer to this image in qweb

Ask a Question
Keep Informed
1 follower(s)
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.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now