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
2 answers
odoo 8 dynamically enable and disable default filter
i have a question related to default search views.
Suppose i need to dynamically enable or disable a default filters how could i do? I tried this but it's not working:

atacraft
- 25
- 1
- 7
0
votes
1 answer
How to move the left side menu to the top of the page using a drop-down in Odoo 8?
I tried to move the left side menu to the top of the page. But I need to create a drop down menu. How to achieve this?
Code :
0
votes
1 answer
Integrating custom module with odoo website
I have a custom module called admission form with some fields suppose name, phone, email, etc. how to add this form to website module using templatr to work like contact form in contact us page when filled data is automatically created in new leads.…

Omeed Totakhel
- 487
- 1
- 10
- 32
0
votes
1 answer
Add Purchase Order field to website checkout in Odoo 9 SaaS
I need to add a PO field to the portal website checkout in Odoo 9 SA (SaaS version). I assume I should add a field in the qweb view through the "customize/HTML Editor" but I'm not sure how I can trigger saving of a field value client_order_ref field…

mikey9
- 111
- 11
0
votes
1 answer
Odoo Qweb show for contact
I am currently working on Odoo (v8) template and want to show contact person name only for customer. What currently works is:
odoo
qweb

ttds
- 1
- 2
0
votes
1 answer
Xpath selection not working in Odoo 9
In Odoo 9, I'm trying to inherit the purchase order form view (file: addons/purchase/purchase_view.xml, record: ). What I need to do is, just edit an attribute of one page tag. I tried to select…

Nikhil Mohan
- 891
- 6
- 13
0
votes
1 answer
odoo POS country_id displays ID and name
Hello I'd like to display only the ID of the country on the PoS customer edit/create screen. I added this field to the pos.xml file:
Country_id

Jesse
- 727
- 13
- 44
0
votes
1 answer
(Odoo/Openerp) Print due payment report of parent company along with its subsidiary company
I have a custom module that inherits 'res.partner' object. I added two fields - parent company(many2one) and subsidiary_ids(one2many). I added additional page in partner form where we can create subsidiary company. My question is, is it possible…

wannabe
- 13
- 6
0
votes
2 answers
QWebException: unexpected EOF while parsing (, line 1) [Odoo/Openerp]
I created a custom module that computes total invoice from each customer or supplier payment voucher. It returns an error whenever I call the report.
QWebException: unexpected EOF while parsing (, line 1)
module:…

wannabe
- 13
- 6
0
votes
1 answer
Odoo 8 QWEB / Create custom Report / QWebException Error
i work currently on a custom report on odoo 8 (self hosted) and created a report structure based on this tutorial: http://odoo.guide/report-design-workshop/
generally the template is created well but when I start zu use e.g.

Powermax1990
- 13
- 2
0
votes
2 answers
0 ValueError The _name attribute report.test_module.report_test_doc is not valid. [Qweb- Odoo]
I'm trying to use report parser, but it always pop an error
ValueError The _name attribute report.test_module.report_test_doc is not valid
I searched that your report name is use for the parser _template and _name in order to be used by Odoo. It…

Fatima
- 13
- 1
- 6
0
votes
2 answers
How can i add the same attribute to all matched items of an odoo xpath query (not only to the first)?
I want add the same attribute to all matched items of an odoo xpath query inside a inherited qweb report template.
My code only change the colour of "1. aaa" to red. (the first matched item)
I can use "/*[@class='test_class'][2]" for the second…

int_tow
- 73
- 6
0
votes
0 answers
Odoo 9 / PDF Export / Useless border
In Odoo 9 (SAAS Version, hosted by Odoo themselves) i get a black line on every page in an exported pdf. The line (see image) is only visible in the pdf (digital and printed) not in a html mode.
Where the line/border comes from and how can i…

Powermax1990
- 13
- 2
0
votes
1 answer
Qweb exception while evaluating in odoo report
I do not know why it's not recognizing the fields which I have created in python file.I am getiing error as QWebException: "amt_inv" while evaluating
"line['amt_inv']"
This is my python file,
class account_move_line(models.Model):
_inherit =…

Kiran
- 1,481
- 6
- 36
- 66
0
votes
1 answer
Openerp 7 - QWeb - Foreach one2many
i have an Problem with Openerp 7.0. I want to loop over a one2many Field.
Here is my Model class:
class my_class(osv.osv):
_name = "my.name"
_inherit = 'mail.thread'
_columns = {
'partners' :…

kpalatzky
- 1,213
- 1
- 11
- 26