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
10
votes
1 answer
Odoo 9. How to override form widgets?
I work with odoo 9. In the system exists render_value method for each type of field:
/odoo/addons/web/static/src/js/views/form_widgets.js
/odoo/addons/web/static/src/js/views/form_relational_widgets.js
How I can use my custom method…

Danila Ganchar
- 10,266
- 13
- 49
- 75
9
votes
3 answers
How can I format date in Odoo 8 QWeb report?
The date in my Sales Order is currently showing as:
Fecha: 21/11/2014 16:59:15
I want to show something like this:
Fecha: Surco, 21 de Noviembre del 2014
I tried using t-esc with strftime but that doesn't work:

César
- 9,939
- 6
- 53
- 74
8
votes
6 answers
How can I format date in Odoo 10 QWeb report?
t-field-option is not working.
I have tried
user5256523
7
votes
1 answer
How to use the barcode scanner on a custom POS popup?
I'm trying to create form which would simplify adding of the products which are not yet registered to nomenclatures for my small shop. For this I've created module with following form:

onorua
- 385
- 4
- 18
7
votes
3 answers
How can I make a "for-loop" with a specific number of loops in Qweb?
I would like to make a loop to print elements an exact amount of times. Something like this:
...
Where o.label_qty is an integer number.
But I can use only a t-foreach loop in qweb:

ChesuCR
- 9,352
- 5
- 51
- 114
7
votes
8 answers
How to set PDF name in qWeb report, Odoo?
I'm making reports using qWeb in Odoo 8. Those generated PDF files are saved with a "default" name. I would like to set a specific name to every generated file (not after file was saved, but in "generation" time).
Is that possible? If it is, how to…

Breba
- 163
- 2
- 4
- 11
6
votes
1 answer
Account invoice report tax table
i have costume model that add some fields to invoice report , but i need to move up tax table up.do i need to delete rows.
is it done by doing something like this?
…
user7897726
6
votes
2 answers
How to get current login user name in qweb report odoo
I want to get and display current login user name in qweb report in odoo. Can someone please tell me, how can i do it or give me some example code. I'll be very thankful...!

M Tahir Noor
- 443
- 2
- 10
- 31
6
votes
2 answers
Q: Odoo QWeb report page counter on page
How can you display the page count outside the footer?
Hey,
I'm building a report for a customer. All is fine except that he wants to display the page number on the page (near the address field) instead of the footer, which is not working at all.
As…

Florian Fischer
- 113
- 2
- 7
6
votes
6 answers
How can I output a odoo 8 datetime field without time on a qweb report?
I want to output a odoo 8 datetime field in the localization format but without time.
I extended the t-field with the option hide_time.
Is there a simpler built-in solution?

user2460152
- 105
- 1
- 3
- 5
5
votes
4 answers
How to link a custom paper format to a pdf report in Odoo 8?
I want to print labels from odoo. For that I created a custom paper format and finding a way to link it to my label report. My label report is a pdf report. (When I create the report I can view it in the default paper format.)
this is the code for…

javatar
- 1,332
- 1
- 17
- 24
4
votes
0 answers
Why header spacing and top margin behave different depending on the page number in Qweb (Odoo)?
I am customizing the layouts of the Odoo PDF reports. I've designed a small header, so I set these parameters on the Euro paper format:
10

forvas
- 9,801
- 7
- 62
- 158
4
votes
1 answer
How to get report_name in Qweb header in Odoo 10?
I need to show a string in the header of several reports which must change depending on the report which is being printed.
By now, I had done this:
...

forvas
- 9,801
- 7
- 62
- 158
4
votes
1 answer
How to create a custom header and footer in Qweb Reports in Odoo 10?
How I can create a custom header and footer for my Custom Qweb Report?
I have tried with the explained here, but it doesn't work, maybe it's due to the previous Odoo version.
Is there a way to make this work on Odoo 10?

ayar
- 143
- 1
- 5
- 19
4
votes
2 answers
Odoo Qweb New Line in t-value string
I try to achieve to have a new line (carriage return) in the string result, but so far, I don't get this working.
This example just ignores the '\n'.

ssstofff
- 638
- 1
- 10
- 19