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
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 =…
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: