summaryrefslogtreecommitdiff
path: root/doc/reference/reports.rst
diff options
context:
space:
mode:
authorRichard Mathot <rim@odoo.com>2017-10-20 17:45:21 +0200
committerRichard Mathot <rim@odoo.com>2017-10-23 11:45:05 +0200
commitb2e7a38d74283faa260293d63039400f9b5fd1e2 (patch)
tree71d1ff8f858b5eb2281f382dc1b08d90a608b84e /doc/reference/reports.rst
parent9898c49754a064797a814c91aeb18c58f9b4ad2c (diff)
[FIX] doc: some changes due to Odoo 11
* Gantt view definitions have been changed * reports call different templates than Odoo 10.0 * XML-RPC and JSON-RPC examples migrated to Python 3
Diffstat (limited to 'doc/reference/reports.rst')
-rw-r--r--doc/reference/reports.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/reference/reports.rst b/doc/reference/reports.rst
index e324b132ae0..6ec6e6a157c 100644
--- a/doc/reference/reports.rst
+++ b/doc/reference/reports.rst
@@ -83,9 +83,9 @@ Minimal viable template
A minimal template would look like::
<template id="report_invoice">
- <t t-call="report.html_container">
+ <t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
- <t t-call="report.external_layout">
+ <t t-call="web.external_layout">
<div class="page">
<h2>Report title</h2>
<p>This object's name is <span t-field="o.name"/></p>
@@ -143,7 +143,7 @@ For example, let's look at the Sale Order report from the Sale module::
<!-- Main template -->
<template id="report_saleorder">
- <t t-call="report.html_container">
+ <t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="sale.report_saleorder_document" t-lang="doc.partner_id.lang"/>
</t>
@@ -154,7 +154,7 @@ For example, let's look at the Sale Order report from the Sale module::
<template id="report_saleorder_document">
<!-- Re-browse of the record with the partner lang -->
<t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})" />
- <t t-call="report.external_layout">
+ <t t-call="web.external_layout">
<div class="page">
<div class="oe_structure"/>
<div class="row">
@@ -175,7 +175,7 @@ each Sale Order will be printed in the language of the corresponding customer. I
to translate only the body of the document, but keep the header and footer in a default
language, you could call the report's external layout this way::
- <t t-call="report.external_layout" t-lang="en_US">
+ <t t-call="web.external_layout" t-lang="en_US">
.. tip::