diff options
| author | Christophe Matthieu <chm@odoo.com> | 2016-07-05 19:12:01 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2016-07-05 19:12:01 +0200 |
| commit | 8517eb3d7b7b29f650a91a05ba91b0eb93f03fcf (patch) | |
| tree | 2580c502d1a2fef8ce11fd259e8c0588c6db4f2f /doc/reference | |
| parent | efed10bd9aadf487f9f1317abc6b89063758477d (diff) | |
| parent | 253a0f63110e91f7b690dc3b0111309001ffa051 (diff) | |
[IMP] qweb: t-esc, t-raw and t-field 'ir.qweb.field' models with t-options
Remove 'field' from 'value_to_html' method attributes
't-esc' escape the result of the widget.
(Added 'remove_span' as option for monetary widget)
E.g.: <t t-esc="32" t-options='t-options='{"widget": "monetary", "display_currency": website.currency_id, "remove_span": True}'>
result: $ 365.00
Use t-options instead of t-field-options
Add backward compatibility
Remove 'values' attribute from record_to_html
Remove 'field' attribute from value_to_html
+ few fix for 'ir.qweb.field' and cache
Diffstat (limited to 'doc/reference')
| -rw-r--r-- | doc/reference/qweb.rst | 2 | ||||
| -rw-r--r-- | doc/reference/reports.rst | 2 |
2 files changed, 2 insertions, 2 deletions
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="{"no_marker": True}"/> + <div t-field="doc.partner_invoice_id" t-options="{"no_marker": True}"/> <...> <div class="oe_structure"/> </div> |
