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
0
votes
1 answer
Using Qweb to generate pdf report in odoo 9
Hi Friends I have used Qweb to generate the pdf report in odoo 9 now i can download the pdf file but the file does not showing the data
Generated PDF

j.v.manoj kumar
- 13
- 5
0
votes
1 answer
Odoo You should upgrade your version of Wkhtmltopdf to at least 0.12.0
I'd like to print a report on Odoon8, I created my report using Qweb technologies, but i've received an error message
You should upgrade your version of Wkhtmltopdf to at least 0.12.0 in order to get a correct display of headers and footers as…

khelili miliana
- 3,730
- 2
- 15
- 28
0
votes
1 answer
Add bootstrap css to odoo report
I'm create report with bootstrap element...https://postimg.org/image/nyoith02t/
Look is not good, how add bootstrap path on report, or inherit from other module?
My module location is odoo9 / custom_module / my_module (not in addons).

user_odoo
- 2,284
- 34
- 55
0
votes
1 answer
Getting issue with printing qweb-report in odoo v8
Below is a code of a function I am using to print report from wizard ..
class manager_monthly_salary_report_wizard(osv.osv_memory):
_name = "manager.monthly.salary.report.wizard"
_columns = {
'month': fields.integer("Month"),
…

Bhuro
- 348
- 4
- 22
0
votes
1 answer
How to check if a float is lesser than 0 in QWEB report
I want to know if there is a special keyword as alternative to > in QWEB report.
I found gt (maps to >) but it shows the following error message:
QWebException: invalid syntax (, line 1)
Code:

Kenly
- 24,317
- 7
- 44
- 60
0
votes
2 answers
Add two value fields in Qweb report
I'm sorry for my English
I am writing a custom Qweb print report for Odoo invoices and my goal is add o.amount_untaxed + tax_amount_by_group(only positive values, excluding negative withholding); this is my code:
user6009583
0
votes
1 answer
Odoo, How to make a python function accessible in Qweb template
How can I make a Python function accessible in Qweb templates.
Like the Python function slug() being used in templates in website_sale and website_hr_recruitment modules

mahes
- 1,074
- 3
- 12
- 20
0
votes
1 answer
Access session variable in qweb template odoo 8
I have added a new key value pair into session in controller file like below:
request.session['new_key']= new_value
And i need to access this new key in my qweb template!
I tried:
and
…

KbiR
- 4,047
- 6
- 37
- 103
0
votes
0 answers
Odoo Qweb Report and database vues
I started to learn Odoo Qweb report by reading the documentation here: https://www.odoo.com/documentation/8.0/reference/reports.html
for the invoice report, i saw in my database vue that there is a vue called account_invoice_report and i guess this…

Oumar Diarra
- 355
- 4
- 16
0
votes
2 answers
How to manage spaces in QWEB reports
My question is about customizing Qweb report in Odoo v8, if you check the image (Report Description) you gonna see that I have dynamic table ,so my main issue is how can I fill the free space by resizing the main coantainer? Any suggestions?
0
votes
1 answer
Qweb report report_name not working
I can't change the default name for my pdf reports. It works if I do it in the settings but I don't want to do it this way. I tried by using report_name in my but it says that report_name is not an element of report. I can't figure out how…

Zada1100
- 41
- 1
- 8
0
votes
2 answers
Odoo 8 Qweb report header won't hide
I don't want the automatic header and footer to appear on my pdf reports and they always appear no matter what I do. I removed them on the settings and they are still there. I can make them disappear on the html report but on the pdf the header is…

Zada1100
- 41
- 1
- 8
0
votes
1 answer
How to change timezone when printing time in qweb report?
Date:
This is my attempted code.I want to print current date and time in the report page.I live in India and our timezone is 5.30 hrs ahead of GMT.I already changed timezone in odoo user…

Kiran
- 1,481
- 6
- 36
- 66
0
votes
2 answers
QWeb template check object is empty
I am facing problem while showing the data from database into Qweb Template of odoo v8.
The codes follows:
The controller gives me object from database : like stock.quant(), the object is from stock_quant table. In this scenario the object is…

user280960
- 711
- 15
- 30
0
votes
0 answers
AttributeError: 'str' object has no attribute 'get' - Odoo
I have this controller in Odoo v8, which creates an url for a model in website:
@route('/contrato/editar/', type='http', auth='public',website=True)
def edit(self, **post_data):
form = CuidumForm(request.httprequest.form)
post =…

NeoVe
- 3,857
- 8
- 54
- 134