123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- <?xml version="1.0" encoding="utf-8"?>
- <openerp>
- <data>
- <!-- Declarar el informe -->
- <report
- id="action_study_feature_partner_report"
- string="Ticket"
- model="study.feature"
- report_type="qweb-pdf"
- name="eiru_study_features.partner_report"
- file="study_feature_parter"
- />
- <record id="action_study_feature_partner_report" model="ir.actions.report.xml">
- <field name="paperformat_id" ref="eiru_study_features.paperformat_study_feature"/>
- </record>
- <!-- Informe -->
- <template id="partner_report">
- <t t-call="report.html_container">
- <t t-foreach="doc_ids" t-as="doc_id">
- <t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'eiru_study_features.partner_report_document')"/>
- </t>
- </t>
- </template>
- <template id="study_feature_parter">
- <div class="page">
- <style>
- body {
- color: #000;
- font-family: Arial, Helvetica, sans-serif;
- font-size: 14px;
- letter-spacing: 0.0px;
- line-height: 20px;
- margin:0;
- padding:0;
- word-spacing:1px;
- }
- .text-lg {
- font-size: 18px;
- font-weight: bold;
- }
- .text-md {
- display: inline-block;
- font-size: 14px;
- font-weight: bold;
- }
- .bordered {
- border: 1px solid #000;
- padding: 10px;
- }
- /* http://www.squareonemd.co.uk/how-to-crop-an-image-with-a-css-class/ */
- .image-container {
- width: 366px;
- text-align: center;
- }
- .image-cropper {
- position: relative;
- height: 45px;
- overflow: hidden;
- }
- .centered {
- position: absolute;
- left: -50%;
- top: -50%;
- max-width: 100%;
- }
- .bottom {
- position: absolute;
- bottom: 0px;
- max-width: 100%;
- }
- .top {
- position: absolute;
- top: 0px;
- max-width: 100%;
- }
- .separator {
- border-top: 1px solid #000;
- margin-top: 20px;
- margin-bottom: 20px;
- }
- </style>
- <section class="header">
- <div class="row">
- <div class="col-xs-12">
- <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>
- </div>
- </div>
- </section>
- <div class="row"><div class="col-xs-12"><div class="separator"/></div></div>
- <div class="row">
- <div class="col-xs-12">
- <p class="text-center" style="margin-top: 10px; margin-bottom: 10px;"><span class="text-md">Información del paciente</span></p>
- <br/>
- Cliente: <span t-if="o.partner_id.name" t-field="o.partner_id.name"/>
- <br/>
- 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>
- <br/>
- Estudio Realizado: <span t-if="o.product_id" t-field="o.product_id"/>
- <br/>
- Fecha: <span t-if="o.order_date" t-field="o.order_date"/>
- <br/>
- Doctor: <span t-if="o.partner_id.medic.name" t-field="o.partner_id.medic.name"/>
- </div>
- </div>
- <t t-if="o.partner_id.company_id">
- <div class="row"><div class="col-xs-12"><div class="separator"/></div></div>
- <div class="row">
- <div class="col-xs-12">
- <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>
- <br/>
- Teléfono: <span t-if="o.partner_id.company_id.phone" t-field="o.partner_id.company_id.phone"/>
- <br/>
- 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>
- </div>
- </div>
- </t>
- </div>
- </template>
- <!-- Contenido del informe -->
- <template id="partner_report_document">
- <t t-call="report.html_container">
- <t t-call="eiru_study_features.study_feature_parter"/>
- </t>
- </template>
- </data>
- </openerp>
|