voucher_report.xml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="report_voucher_document">
  5. <!-- <t t-call="report.external_layout"> -->
  6. <t t-foreach="docs" t-as="o">
  7. <div class="page" style="margin:10px; padding:10px; border:3px solid #ccc; border-radius:10px;">
  8. <h3 style="text-align:center;">
  9. <span t-if="o.type == 'receipt'">Receipt Voucher</span>
  10. <span t-if="o.type == 'payment'">Payment Voucher</span>
  11. <span t-if="o.number">No. <span t-field="o.number"/></span>
  12. </h3>
  13. <div class="row">
  14. <div class="col-xs-9">
  15. <p><strong>
  16. <span t-if="o.type == 'receipt'">Paid by:</span>
  17. <span t-if="o.type == 'payment'">Paid to:</span>
  18. </strong>
  19. <span t-field="o.partner_id"/> - Address:
  20. <span t-field="o.partner_id.contact_address"/></p>
  21. </div>
  22. <div class="col-xs-9">
  23. <p><strong>
  24. <span t-if="o.type == 'receipt'">Paid to:</span>
  25. <span t-if="o.type == 'payment'">Paid by:</span>
  26. </strong>
  27. <span t-field="o.company_id"/> - Address:
  28. <span t-field="o.company_id.partner_id.contact_address"/></p>
  29. </div>
  30. <div class="col-xs-4">
  31. <strong>Payment Date:</strong>
  32. <p t-field="o.date"/>
  33. </div>
  34. <div class="col-xs-4">
  35. <strong>Reference/Description:</strong>
  36. <p t-field="o.reference"/>
  37. </div>
  38. </div>
  39. <hr size="4" width="90%"></hr>
  40. <div>
  41. <p>
  42. <span t-if="o.type == 'receipt'">Received from</span>
  43. <span t-if="o.type == 'payment'">Paid to</span>
  44. <strong><span t-field="o.partner_id"/></strong> - Address:
  45. <span t-field="o.partner_id.contact_address"/></p>
  46. <p>Amount of
  47. <strong>
  48. <span t-field="o.currency_id.symbol"/>
  49. <span t-field="o.amount"/>
  50. </strong>
  51. Payment method <strong><span t-field="o.journal_id"/></strong>
  52. <span t-if="o.reference">
  53. With Reference/as value of <strong><span t-field="o.reference"/>
  54. </strong></span>
  55. </p>
  56. </div>
  57. <div>
  58. <!-- <span t-if="o.narration"> -->
  59. <p><strong>Notes:</strong> <span t-field="o.narration"/></p>
  60. <!-- </span> -->
  61. </div>
  62. <hr size="4" width="90%"></hr>
  63. <div class="row" style="text-align:center;">
  64. <div class="col-xs-4">
  65. <strong>Responsible:</strong>
  66. <p>.......................</p>
  67. </div>
  68. <div class="col-xs-4">
  69. <strong>Accountant:</strong>
  70. <p t-field="o.create_uid"/>
  71. </div>
  72. <div class="col-xs-4">
  73. <strong>Manager:</strong>
  74. <p>..................</p>
  75. </div>
  76. </div>
  77. </div>
  78. </t>
  79. <!-- </t> -->
  80. </template>
  81. <template id="report_voucher">
  82. <t t-call="report.html_container">
  83. <t t-foreach="doc_ids" t-as="doc_id">
  84. <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'voucher_print.report_voucher_document')"/>
  85. </t>
  86. </t>
  87. </template>
  88. </data>
  89. </openerp>