odoo_dev 开发培训作业:图书管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0KB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="data_list_template" name="Car List">
  4. <div id="wrap" class="container">
  5. <h1>Cars</h1>
  6. <t t-foreach="cars" t-as="car">
  7. <div class="row">
  8. <span t-field="car.name" />,
  9. <span t-field="car.color" />,
  10. </div>
  11. </t>
  12. </div>
  13. </template>
  14. <data>
  15. <!--
  16. <template id="listing">
  17. <ul>
  18. <li t-foreach="objects" t-as="object">
  19. <a t-attf-href="#{ root }/objects/#{ object.id }">
  20. <t t-esc="object.display_name"/>
  21. </a>
  22. </li>
  23. </ul>
  24. </template>
  25. <template id="object">
  26. <h1><t t-esc="object.display_name"/></h1>
  27. <dl>
  28. <t t-foreach="object._fields" t-as="field">
  29. <dt><t t-esc="field"/></dt>
  30. <dd><t t-esc="object[field]"/></dd>
  31. </t>
  32. </dl>
  33. </template>
  34. -->
  35. </data>
  36. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1