|
@@ -0,0 +1,152 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<openerp>
|
|
|
+ <data>
|
|
|
+
|
|
|
+ <!-- Declarar el informe -->
|
|
|
+ <report
|
|
|
+ id="action_project_feature_dental_mocona_report"
|
|
|
+ string="Ticket"
|
|
|
+ model="project.task"
|
|
|
+ report_type="qweb-pdf"
|
|
|
+ name="project_features_dental_mocona.mocona_report"
|
|
|
+ file="project_features_dental_mocona"
|
|
|
+ />
|
|
|
+
|
|
|
+ <record id="action_project_feature_dental_mocona_report" model="ir.actions.report.xml">
|
|
|
+ <field name="paperformat_id" ref="project_features_dental_mocona.paperformat_project_features_dental_mocona"/>
|
|
|
+ </record>
|
|
|
+
|
|
|
+ <!-- Informe -->
|
|
|
+ <template id="mocona_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', 'project_features_dental_mocona.dental_mocona_report_document')"/>
|
|
|
+ </t>
|
|
|
+ </t>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template id="project_features_dental_mocona">
|
|
|
+ <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;
|
|
|
+ }
|
|
|
+ .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>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-xs-12">
|
|
|
+ <br/>
|
|
|
+ Cliente: <span t-if="o.project_id.partner_id.name" t-field="o.project_id.partner_id.name"/>
|
|
|
+ <br/>
|
|
|
+ Doctor: <span t-if="o.project_id.partner_id.medic.name" t-field="o.project_id.partner_id.medic.name"/>
|
|
|
+ <br/>
|
|
|
+ <br/>
|
|
|
+ Modelo:
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
+ Superior: <t t-if="o.higher == True"><span><strong>X</strong></span></t>
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
+ Inferior: <t t-if="o.lower == True"><span><strong>X</strong></span></t>
|
|
|
+ <br/>
|
|
|
+ Fase (Modelos):
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
+ &nbsp;&nbsp;
|
|
|
+ <span t-if="o.phase_start" t-field="o.phase_start"/> <span><strong> / </strong></span> <span t-if="o.phase_start" t-field="o.phase_end"/>
|
|
|
+ <br/>
|
|
|
+ Alineador (Espesores):
|
|
|
+ &nbsp;&nbsp;
|
|
|
+ <span> A1 (0,5): </span> <t t-if="o.a1 == True"><span><strong> X </strong></span></t>
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
+ <span>A1 (0,8): </span> <t t-if="o.a2 == True"><span><strong> X </strong></span></t>
|
|
|
+ <br/>
|
|
|
+ <br/>
|
|
|
+ Fecha:
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
+ desde
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
+ <span>_____/_____/_____</span>
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
+ hasta
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
+ <span>_____/_____/_____</span>
|
|
|
+ <br/>
|
|
|
+ <br/>
|
|
|
+ Numero de lote:
|
|
|
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|
|
|
+ <span t-field="o.id"/>
|
|
|
+ </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">Fase (Modelos)</span></p>
|
|
|
+ <br/>
|
|
|
+ Superior: <t t-if="o.higher == True"><span><strong>X</strong></span></t>
|
|
|
+ <br/>
|
|
|
+ Inferior: <t t-if="o.higher == True"><span><strong>X</strong></span></t>
|
|
|
+ </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="dental_mocona_report_document">
|
|
|
+ <t t-call="report.html_container">
|
|
|
+ <t t-call="project_features_dental_mocona.project_features_dental_mocona"/>
|
|
|
+ </t>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </data>
|
|
|
+</openerp>
|