[IMP] models: move prefetching of records back to method _prefetch_field
[odoo/odoo.git] / doc / howto / howto_website / ta-t-field
1 # HG changeset patch
2 # Parent a1788b0db87f7fdb5640b17bbda6e9a0c6093c37
3
4 diff --git a/views/templates.xml b/views/templates.xml
5 --- a/views/templates.xml
6 +++ b/views/templates.xml
7 @@ -18,7 +18,7 @@
8                      <ul>
9                          <li t-foreach="tas" t-as="ta">
10                              <a t-att-href="url_for('/tas/%d/' % ta['id'])">
11 -                                <t t-esc="ta['name']"/>
12 +                                <span t-field="ta.name"/>
13                              </a>
14                          </li>
15                      </ul>
16 @@ -35,7 +35,7 @@
17              <div class="oe_structure"/>
18              <div class="oe_structure">
19                  <div class="container">
20 -                    <h1><t t-esc="ta.name"/></h1>
21 +                    <h1 t-field="ta.name"/>
22                  </div>
23              </div>
24              <div class="oe_structure"/>