identity_card.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <template id="identity_card">
  5. <t t-call="report.html_container">
  6. <t t-foreach="docs" t-as="student">
  7. <t t-call="report.external_layout">
  8. <div class="page" style="height: 2px;">
  9. <div class="oe_structure" />
  10. <br/><br/><br/><br/><br/><br/><br/>
  11. <table width="25%" height="50px" style="border: 3px solid black;">
  12. <tr>
  13. <td width="100%" align="center" height="30">
  14. <strong>
  15. <span t-field="student.school_id.name" />
  16. </strong>
  17. </td>
  18. </tr>
  19. <tr>
  20. <td align="center">
  21. <img t-if="student.photo" t-att-src="'data:image/png;base64,%s' % student.photo"
  22. style="height:120px;width=120px" />
  23. </td>
  24. </tr>
  25. <tr>
  26. <td height="10px">
  27. </td>
  28. </tr>
  29. <tr>
  30. <td align="center" height="30px">
  31. <strong>
  32. <span t-field="student.name" />
  33. </strong>
  34. <strong>
  35. <span t-field="student.middle" />
  36. </strong>
  37. <strong>
  38. <span t-field="student.last" />
  39. </strong>
  40. </td>
  41. </tr>
  42. <tr>
  43. <td height="130">
  44. <table width="100%">
  45. <tr>
  46. <td style="font-family: 'Helvetica';padding-left:20px;">
  47. <strong>Roll No.</strong>
  48. </td>
  49. <td>
  50. <strong>: </strong>
  51. </td>
  52. <td>
  53. <span t-field="student.roll_no" />
  54. </td>
  55. </tr>
  56. <tr>
  57. <td style="font-family: 'Helvetica';padding-left:20px;">
  58. <strong>Standard</strong>
  59. </td>
  60. <td>
  61. <strong>: </strong>
  62. </td>
  63. <td>
  64. <span t-field="student.standard_id.name" />
  65. (
  66. <span t-field="student.division_id.name" />
  67. )
  68. </td>
  69. </tr>
  70. <tr>
  71. <td style="font-family: 'Helvetica';padding-left:20px;">
  72. <strong>Medium</strong>
  73. </td>
  74. <td>
  75. <strong>: </strong>
  76. </td>
  77. <td>
  78. <span t-field="student.medium_id.name" />
  79. </td>
  80. </tr>
  81. <tr>
  82. <td style="font-family: 'Helvetica';padding-left:20px;">
  83. <strong>Birthdate</strong>
  84. </td>
  85. <td>
  86. <strong>: </strong>
  87. </td>
  88. <td>
  89. <span t-field="student.date_of_birth" />
  90. </td>
  91. </tr>
  92. <tr>
  93. <td style="font-family: 'Helvetica';padding-left:20px;">
  94. <strong>Blood Group</strong>
  95. </td>
  96. <td>
  97. <strong>: </strong>
  98. </td>
  99. <td>
  100. <span t-field="student.blood_group" />
  101. </td>
  102. </tr>
  103. </table>
  104. </td>
  105. </tr>
  106. </table>
  107. </div>
  108. </t>
  109. </t>
  110. </t>
  111. </template>
  112. </data>
  113. </openerp>