November 2016
Beginner to intermediate
298 pages
6h 10m
English
Unlike Kanban views, the QWeb templates in reports are rendered server side, and use a Python QWeb implementation. We can see this as two implementations of the same specification, and there are some differences that we need to be aware of.
To start with, QWeb expressions are evaluated using Python syntax, not JavaScript. For the simplest expressions, there may be little or no difference, but more complex operations will probably be different.
The way expressions are evaluated is also different. For reports, we have the following variables available:
docs is an iterable collection with the records to printdoc_ids is a list of the IDs of the records to printdoc_model identifies the model of the records, todo.task for example ...Read now
Unlock full access