Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. <openerp>
  2. <data>
  3. <report
  4. id="report_example_model_name"
  5. model="example.model_name"
  6. string="Example Report"
  7. name="example.report_example_report_view"
  8. file="example.report_model_name"
  9. report_type="qweb-pdf"/>
  10.  
  11. <template id="report_example_report_view">
  12. <t t-call="report.html_container">
  13. <!-- REMEMBER, docs is the selected records either in form view or checked in list view (usually). So the line below says use the following template for each record that has been selected. -->
  14. <t t-foreach="docs" t-as="doc">
  15. <t>
  16. <div class="page">
  17. <h1>Report For <t t-esc="doc.name"/></h1>
  18. <table>
  19. <tr>
  20. <th>ID</th>
  21. <th>Name</th>
  22. <th>Date</th>
  23. </tr>
  24.  
  25. <t t-foreach="doc.subrecord" t-as="o">
  26. <tr>
  27. <td><t t-esc="o.id"/></td>
  28. <td><t t-esc="o.name"/></td>
  29. <td><t t-esc="o.date"/></td>
  30. </tr>
  31. </t>
  32.  
  33. </table>
  34. </div>
  35. </t>
  36. </t>
  37. </t>
  38. </template>
  39. </data>
  40. </openerp>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement