Questions tagged [qweb]

QWeb is the template engine used by the OpenERP/Odoo Web Client. It is an XML-based templating language, similar to Genshi, Thymeleaf or Facelets

572 questions
2
votes
1 answer

Chart in qweb pdf report - odoo 14

Is there a way to print a bar chart within a qweb report? I'm trying to use the t-raw property, but this doesn't seem to run javascript (I'm trying to embed Char.js) This is what I did, but it just prints it, it doesn't run the javascript before…
Legna
  • 460
  • 6
  • 19
2
votes
0 answers

How to Change the position of searchbar in odoo 15 in web

How Can I change the position…
2
votes
1 answer

'base.document.layout' object has no attribute 'header' odoo14 - trying to display custom fields in report

with a custom module, I have added the two fields header and footer to every res.company object. These are fields of the type binary. I now want to display them in my document layout in qweb. Unfortunately, odoo tells me 'base.document.layout'…
unnamed-dev
  • 165
  • 8
2
votes
1 answer

Odoo 14 header customization

In Odoo 14 I would like to edit my invoice. I've been sitting on it for a few hours now and can't get any further. Many header customization are described for Odoo 12 or below and do not give me a concrete answer. I want to have my company address…
AkMarcel94
  • 21
  • 3
2
votes
1 answer

How to print divs with an accurate size using Wkhtmltopdf in Odoo?

I am trying to create a new Qweb report of product labels in Odoo 10. The paperformat of the report must be an A4 with no margin. Each label must have a width of 70mm and a height of 42.4mm. This means there will be three labels per row and seven…
forvas
  • 9,801
  • 7
  • 62
  • 158
2
votes
1 answer

Report header is overlapsing table from page content

I've been ask to develop a custom report for purchase orders in Odoo 14. The header of this report has to be in all pages. In the first page the table is displayed in good position, but on second page, the header is over the table headers. Look at…
southernegro
  • 384
  • 4
  • 20
2
votes
1 answer

Qweb report : Error to render compiling AST, Memory error

While print a custom qweb report i am getting following error in odoo 10 Error to render compiling AST MemoryError: Template: report.html_container Path: /templates/t/t[2]/t Node: I am sending 2 lists and 1 dictionary to xml.my…
user10810227
  • 83
  • 10
2
votes
0 answers

How to display a embedded pdf file in Odoo?

I'm trying to do a documentation module where the user uploads a pdf file, and give a description about the file. so when you submit, you have the description, and the file. near the file there is a download button, that when you click on it it…
Hamza DG
  • 21
  • 2
2
votes
1 answer

How to check the current URL in qweb?

I would like to check current URL in qweb to change the text in a button. I am working in an online store based in Odoo 11.0 community