summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2016-07-05 08:08:19 +0200
committerChristophe Matthieu <chm@odoo.com>2016-07-05 18:44:58 +0200
commit032122484e78819cfa6ac9dc89a8d9dcf02dab01 (patch)
tree6bbd3a53b497555f735304a611b1bca3a9dd2942 /doc
parent940e23a7dc0b386d28afe3b4515f5dab49a1a994 (diff)
[TYPO] qweb: use the same option attribute for t-esc t-raw and t-field
t-options instead of t-field-options
Diffstat (limited to 'doc')
-rw-r--r--doc/howtos/website/field-format2
-rw-r--r--doc/howtos/website/field-widget4
-rw-r--r--doc/reference/qweb.rst2
-rw-r--r--doc/reference/reports.rst2
4 files changed, 5 insertions, 5 deletions
diff --git a/doc/howtos/website/field-format b/doc/howtos/website/field-format
index 2fbaa541f8c..930ccfa0fa6 100644
--- a/doc/howtos/website/field-format
+++ b/doc/howtos/website/field-format
@@ -10,7 +10,7 @@ diff --git a/academy/templates.xml b/academy/templates.xml
<div class="container">
<h3 t-field="person.name"/>
- <p>Last modified: <i t-field="person.write_date"/></p>
-+ <p>Last modified: <i t-field="person.write_date" t-field-options='{"format": "long"}'/></p>
++ <p>Last modified: <i t-field="person.write_date" t-options='{"format": "long"}'/></p>
<div t-field="person.biography"/>
</div>
</div>
diff --git a/doc/howtos/website/field-widget b/doc/howtos/website/field-widget
index 667cb8a65f1..ea3ddce562a 100644
--- a/doc/howtos/website/field-widget
+++ b/doc/howtos/website/field-widget
@@ -9,8 +9,8 @@ diff --git a/academy/templates.xml b/academy/templates.xml
<div class="oe_structure">
<div class="container">
<h3 t-field="person.name"/>
-- <p>Last modified: <i t-field="person.write_date" t-field-options='{"format": "long"}'/></p>
-+ <p>Last modified: <i t-field="person.write_date" t-field-options='{"widget": "relative"}'/></p>
+- <p>Last modified: <i t-field="person.write_date" t-options='{"format": "long"}'/></p>
++ <p>Last modified: <i t-field="person.write_date" t-options='{"widget": "relative"}'/></p>
<div t-field="person.biography"/>
</div>
</div>
diff --git a/doc/reference/qweb.rst b/doc/reference/qweb.rst
index fc4ecd43aca..1fa29212998 100644
--- a/doc/reference/qweb.rst
+++ b/doc/reference/qweb.rst
@@ -334,7 +334,7 @@ The ``t-field`` directive can only be used when performing field access
to automatically format based on field type, and is integrated in the
website's rich text edition.
-``t-field-options`` can be used to customize fields, the most common option
+``t-options`` can be used to customize fields, the most common option
is ``widget``, other options are field- or widget-dependent.
debugging
diff --git a/doc/reference/reports.rst b/doc/reference/reports.rst
index f1b4acfd479..64545fd5729 100644
--- a/doc/reference/reports.rst
+++ b/doc/reference/reports.rst
@@ -161,7 +161,7 @@ For example, let's look at the Sale Order report from the Sale module::
<div class="col-xs-6">
<strong t-if="doc.partner_shipping_id == doc.partner_invoice_id">Invoice and shipping address:</strong>
<strong t-if="doc.partner_shipping_id != doc.partner_invoice_id">Invoice address:</strong>
- <div t-field="doc.partner_invoice_id" t-field-options="{&quot;no_marker&quot;: True}"/>
+ <div t-field="doc.partner_invoice_id" t-options="{&quot;no_marker&quot;: True}"/>
<...>
<div class="oe_structure"/>
</div>