Related questions
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:
<template id="report_footer_custom" inherit_id="report.external_layout_footer">
<xpath expr="//div[@…
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:
<span t-esc="o.date_order.strftime(…
[Odoo][Qweb]Dictionary foreach, print key and value
Is there a way to print key and value from a python dictionary in loop Qweb?
For example, if I have a fuction that return a dictionary:
def get_informations(self):
mydico={'myfirstkey':1,'mysecondkey':2}
return mydico
And then, in Qweb …