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
Questions tagged [qweb]
572 questions
3
votes
1 answer
How to get pdf data or content in odoo 8
I have been stuck in two days to fix the problem. I would like to get the binary data or content of pdf file and saving it in a variable with or without throwing the pdf file to user. Here are my codes :
def generate_printout(self):
data =…

Yuniar Kurniawan S
- 83
- 1
- 7
3
votes
2 answers
How to create a button in the tree view header (next to create and import buttons) and give it functionality? In odoo 9
I am trying to add a button in the tree view of sale order module, next to create and import buttons. That button will execute a python method.
I have created my custom module, extending sale order module and then, I have followed these steps:
Step…

MouTio
- 1,249
- 23
- 45
3
votes
1 answer
Create custom report odoo 9
I'm new in odoo. I need one custom report but don't understand all about this.
In odoo documentation stay:
from openerp import api, models
class ParticularReport(models.AbstractModel):
_name = 'report.module.report_name'
@api.multi
def…

Anastasia_
- 289
- 1
- 3
- 17
3
votes
1 answer
Generate report from wizard in odoo 9
I need help about generate report from wizard in odoo 9. On internet I'm find one unfinished example. I want get all user is res.user where create_date (field in res.users) >= date_from and =< date_to from my wizzard.
My source:

user_odoo
- 2,284
- 34
- 55
3
votes
1 answer
Odoo and Qweb: render HTML in quotation report
I would like to be able to print quotations's payment terms in HTML in Odoo.
I edited the sale.order.form view, adding the widget="html" attribut to the term element like this:

Damien
- 33
- 1
- 4
3
votes
1 answer
Qweb Xpath of child node in odoo / openERP?
Here i want insert a LI item inside existing UL
I tried this,
XML
…
XPATH

Jothimani
- 137
- 1
- 10
3
votes
2 answers
How to print a time field (declared as a float) in Qweb Reports with the float_time widget?
When I want to print a date in a Qweb Reports I use this simple widget:
But when I want to print time I cannot use this other widget because it doesn't work, I think it doesn't…

ChesuCR
- 9,352
- 5
- 51
- 114
3
votes
4 answers
How to display an image in a QWeb report?
I extended the 'report.external_layout_footer' qweb view to display image.
Below is my code in the file reports/external_layout.xml:

renard
- 1,368
- 6
- 20
- 40
3
votes
1 answer
Checking for Last Page in QWeb Reports in Odoo
Odoo v8 uses Qweb and we need to print the terms and conditions of sale on the last page of the invoice.
As I understand we need to test that it is the last page of the report and print some static HTML on this page.
Does anyone know how to test the…

Rohit
- 75
- 1
- 7
3
votes
4 answers
Can not access custom method in Odoo 8 Qweb report template
I'm starting with Odoo Qweb Report. I followed this tutorial to create my first custom report http://blog.emiprotechnologies.com/create-qweb-report-odoo/
parser class
import time
from openerp.osv import osv
from openerp.report import…

user3129344
- 61
- 2
- 8
2
votes
1 answer
t-foreach loop in POS template screen is not working
I'm working on Odoo 16 and tried to create a custom screen in POS.
Is there any particular reason why the following template is not working in my custom POS screen?
2
votes
0 answers
How mail with attachment of PDF report generated through cron. Odoo 14
I want to send mail with attachment of PDF report generated through cron.
the model : "stock.warehouse.orderpoint".
I want to send mail with report PDF containing the information of model "stock.warehouse.orderpoint", when trying this code , I got…

Ing
- 551
- 7
- 20
2
votes
1 answer
Odoo 15 - Create a new page in Qweb report
i´m new to odoo and i want to understand if its possible to create a new page for my report
…

Ricardo Silva
- 21
- 2
2
votes
1 answer
What is the scope of the variables passed to subtemplates in QWeb?
I am using Odoo 13, but this is a QWeb question:
I got the following template in QWeb:
Inside subtemplate:

forvas
- 9,801
- 7
- 62
- 158