Нема описа
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.

report_resepobat.xml 3.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <odoo>
  2. <data>
  3. <template id="report_resepobat_document">
  4. <t t-call="report.external_layout">
  5. <t t-set="o" t-value="o.with_context({})"/>
  6. <div class="page">
  7. <div class="oe_structure"/>
  8. <h1 class="text-center">Resep Obat</h1>
  9. <div class="row mt32 mb32">
  10. <div t-if="o.name" class="col-xs-3">
  11. <strong>Nomor :</strong>
  12. <p t-field="o.name"/>
  13. </div>
  14. <div t-if="o.pasien_id" class="col-xs-3">
  15. <strong>Pasien :</strong>
  16. <p t-field="o.pasien_id.name"/>
  17. </div>
  18. <div t-if="o.tanggal" class="col-xs-3">
  19. <strong>Tanggal :</strong>
  20. <p t-field="o.tanggal"/>
  21. </div>
  22. </div>
  23. <table class="table table-condensed">
  24. <thead>
  25. <tr>
  26. <th><strong>Obat</strong></th>
  27. <th><strong>Aturan Minum</strong></th>
  28. <th><strong>Sebelum/Sesudah Makan</strong></th>
  29. <th><strong>Quantity</strong></th>
  30. <th><strong>Satuan</strong></th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. <tr t-foreach="o.resep_line" t-as="l">
  35. <td>
  36. <span t-field="l.product_id.name"/>
  37. </td>
  38. <td>
  39. <span t-field="l.aturan_minum"/>
  40. </td>
  41. <td>
  42. <span t-field="l.waktu_minum"/>
  43. </td>
  44. <td>
  45. <span t-field="l.qty"/>
  46. </td>
  47. <td>
  48. <span t-field="l.satuan_id.name"/>
  49. </td>
  50. </tr>
  51. </tbody>
  52. </table>
  53. <div class="oe_structure"/>
  54. <div class="row" name="ttd" style="padding-top:20px;">
  55. <div class="col-xs-4" style="text-align:center">
  56. <div style="padding-bottom:60px;">Tertanda,</div>
  57. <div> ( <span t-field="user.name"/> )</div>
  58. </div>
  59. </div>
  60. </div>
  61. </t>
  62. </template>
  63. <template id="report_resepobat">
  64. <t t-call="report.html_container">
  65. <t t-foreach="docs" t-as="o">
  66. <t t-call="ms_puskesmas.report_resepobat_document"/>
  67. </t>
  68. </t>
  69. </template>
  70. <report
  71. string="Resep Obat"
  72. id="cpl_action_report_resepobat"
  73. model="ms.pemeriksaan"
  74. report_type="qweb-pdf"
  75. name="ms_puskesmas.report_resepobat"
  76. file="ms_puskesmas.report_resepobat"
  77. />
  78. </data>
  79. </odoo>