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.

38 line
1.5KB

  1. <?xml version="1.0"?>
  2. <odoo>
  3. <template id="report_library_book_sql">
  4. <t t-call="web.html_container">
  5. <t t-call="web.external_layout">
  6. <div class="page">
  7. <!-- Report page content -->
  8. <table class="table table-striped">
  9. <tr>
  10. <th>Title</th>
  11. <th>Published</th>
  12. <th>Date</th>
  13. </tr>
  14. <t t-foreach="docs" t-as="o">
  15. <tr>
  16. <td class="col-xs-6">
  17. <span t-field="o.name" />
  18. </td>
  19. <td class="col-xs-3">
  20. <span t-field="o.publisher_id" />
  21. </td>
  22. <td class="col-xs-3">
  23. <span t-field="o.date_published"
  24. t-options="{'widget': 'date'}" />
  25. </td>
  26. </tr>
  27. </t>
  28. </table>
  29. </div>
  30. </t>
  31. </t>
  32. </template>
  33. <report id="action_library_book_sql_report"
  34. string="Library Book SQL Report"
  35. model="library.book.report"
  36. report_type="qweb-html"
  37. name="library_app.report_library_book_sql" />
  38. </odoo>
上海开阖软件有限公司 沪ICP备12045867号-1