ticket.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Declarar el informe -->
  5. <report
  6. id="action_study_feature_partner_report"
  7. string="Ticket"
  8. model="study.feature"
  9. report_type="qweb-pdf"
  10. name="eiru_study_features.partner_report"
  11. file="study_feature_parter"
  12. />
  13. <record id="action_study_feature_partner_report" model="ir.actions.report.xml">
  14. <field name="paperformat_id" ref="eiru_study_features.paperformat_study_feature"/>
  15. </record>
  16. <!-- Informe -->
  17. <template id="partner_report">
  18. <t t-call="report.html_container">
  19. <t t-foreach="doc_ids" t-as="doc_id">
  20. <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'eiru_study_features.partner_report_document')"/>
  21. </t>
  22. </t>
  23. </template>
  24. <template id="study_feature_parter">
  25. <div class="page">
  26. <style>
  27. body {
  28. color: #000;
  29. font-family: Arial, Helvetica, sans-serif;
  30. font-size: 14px;
  31. letter-spacing: 0.0px;
  32. line-height: 20px;
  33. margin:0;
  34. padding:0;
  35. word-spacing:1px;
  36. }
  37. .text-lg {
  38. font-size: 18px;
  39. font-weight: bold;
  40. }
  41. .text-md {
  42. display: inline-block;
  43. font-size: 14px;
  44. font-weight: bold;
  45. }
  46. .bordered {
  47. border: 1px solid #000;
  48. padding: 10px;
  49. }
  50. /* http://www.squareonemd.co.uk/how-to-crop-an-image-with-a-css-class/ */
  51. .image-container {
  52. width: 366px;
  53. text-align: center;
  54. }
  55. .image-cropper {
  56. position: relative;
  57. height: 45px;
  58. overflow: hidden;
  59. }
  60. .centered {
  61. position: absolute;
  62. left: -50%;
  63. top: -50%;
  64. max-width: 100%;
  65. }
  66. .bottom {
  67. position: absolute;
  68. bottom: 0px;
  69. max-width: 100%;
  70. }
  71. .top {
  72. position: absolute;
  73. top: 0px;
  74. max-width: 100%;
  75. }
  76. .separator {
  77. border-top: 1px solid #000;
  78. margin-top: 20px;
  79. margin-bottom: 20px;
  80. }
  81. </style>
  82. <section class="header">
  83. <div class="row">
  84. <div class="col-xs-12">
  85. <p class="text-center" style="margin-top: 10px; margin-bottom: 10px;"><span class="text-lg">NUMERO DE ESTUDIO <span t-if="o.name" t-field="o.name"/></span></p>
  86. </div>
  87. </div>
  88. </section>
  89. <div class="row"><div class="col-xs-12"><div class="separator"/></div></div>
  90. <div class="row">
  91. <div class="col-xs-12">
  92. <p class="text-center" style="margin-top: 10px; margin-bottom: 10px;"><span class="text-md">Información del paciente</span></p>
  93. <br/>
  94. Cliente: <span t-if="o.partner_id.name" t-field="o.partner_id.name"/>
  95. <br/>
  96. Teléfono: <span t-if="o.partner_id.phone" t-field="o.partner_id.phone"/><t t-if="o.partner_id.mobile"> - <span t-field="o.partner_id.mobile"/></t>
  97. <br/>
  98. Estudio Realizado: <span t-if="o.product_id" t-field="o.product_id"/>
  99. <br/>
  100. Fecha: <span t-if="o.order_date" t-field="o.order_date"/>
  101. <br/>
  102. Doctor: <span t-if="o.partner_id.medic.name" t-field="o.partner_id.medic.name"/>
  103. </div>
  104. </div>
  105. <t t-if="o.partner_id.company_id">
  106. <div class="row"><div class="col-xs-12"><div class="separator"/></div></div>
  107. <div class="row">
  108. <div class="col-xs-12">
  109. <p class="text-center" style="margin-top: 10px; margin-bottom: 10px;"><span class="text-md"><span t-if="o.partner_id.company_id.name" t-field="o.partner_id.company_id.name"/></span></p>
  110. <br/>
  111. Teléfono: <span t-if="o.partner_id.company_id.phone" t-field="o.partner_id.company_id.phone"/>
  112. <br/>
  113. Direccion: <span t-if="o.partner_id.company_id.street" t-field="o.partner_id.company_id.street"/><t t-if="o.partner_id.company_id.city">, <span t-field="o.partner_id.company_id.city"/></t><t t-if="o.partner_id.company_id.country_id.name">, <span t-field="o.partner_id.company_id.country_id.name"/></t>
  114. </div>
  115. </div>
  116. </t>
  117. </div>
  118. </template>
  119. <!-- Contenido del informe -->
  120. <template id="partner_report_document">
  121. <t t-call="report.html_container">
  122. <t t-call="eiru_study_features.study_feature_parter"/>
  123. </t>
  124. </template>
  125. </data>
  126. </openerp>