[IMP] developer/reference: new usage of Model.mapped()

odoo/odoo#185630
This commit is contained in:
Krzysztof Magusiak (krma)
2024-09-02 14:45:49 +00:00
parent 3218baee71
commit cf12d31739
3 changed files with 11 additions and 5 deletions

View File

@@ -124,7 +124,7 @@ our minimal property offers template file:
</tr>
</thead>
<tbody>
<t t-set="offers" t-value="property.mapped('offer_ids')"/>
<t t-set="offers" t-value="property.offer_ids"/>
<tr t-foreach="offers" t-as="offer">
<td>
<span t-field="offer.price"/>