OCA reporting engine fork for dev and update.
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.

45 lines
1.4 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2015 Tecnativa - Antonio Espinosa
  4. Copyright 2017 Tecnativa - Pedro M. Baeza
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. -->
  7. <odoo>
  8. <template id="report_partner_demo_document">
  9. <t t-call="web.external_layout">
  10. <div class="page">
  11. <div class="row">
  12. <div class="col-md-12">
  13. <span>This is a sample report for testing PDF certificates.</span>
  14. </div>
  15. </div>
  16. <div class="row">
  17. <div class="col-md-12">
  18. <strong>Partner:</strong> <span t-field="o.name"/>
  19. </div>
  20. </div>
  21. </div>
  22. </t>
  23. </template>
  24. <template id="report_partner_demo">
  25. <t t-call="web.html_container">
  26. <t t-foreach="docs" t-as="o">
  27. <t t-call="report_qweb_signer.report_partner_demo_document" t-lang="o.lang"/>
  28. </t>
  29. </t>
  30. </template>
  31. <report
  32. id="partner_demo_report"
  33. model="res.partner"
  34. string="Test PDF certificate"
  35. report_type="qweb-pdf"
  36. name="report_qweb_signer.report_partner_demo"
  37. file="report_qweb_signer.report_partner_demo"
  38. attachment_use="True"
  39. attachment="'test_' + (object.name or '').replace(' ', '_').lower() + '.pdf'"
  40. />
  41. </odoo>