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.
42 lines
2.1 KiB
42 lines
2.1 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo>
|
|
<!-- Appointment card report template -->
|
|
<template id="dental_clinical_management_appointment_card">
|
|
<t t-call="web.html_container">
|
|
<section>
|
|
<div style="width: 500px; height: 260px; border: 2px black solid; border-radius: 5px;">
|
|
<div class="container" style="width: 500px; height: 50px; background-color:red">
|
|
<h1 style="margin: 10px; color:white;">
|
|
Appointment Card
|
|
</h1>
|
|
</div>
|
|
<div class="page" style="padding: 10px;">
|
|
<h1>
|
|
<b>Token: <t t-esc="token"/></b>
|
|
</h1>
|
|
<p>
|
|
<b>Doctor: <t t-esc="doctor"/></b><br/>
|
|
<b>Specialised: <t t-esc="specialised"/></b><br/>
|
|
<b>Time: <t t-esc="appointment_time"/></b><br/>
|
|
<b>Date: <t t-esc="date"/></b>
|
|
</p>
|
|
<div style="position:absolute; left:320px; top:100px;">
|
|
<img t-attf-src="{{ request.httprequest.url_root }}dental_clinical_management/static/src/img/appointment.jpeg"
|
|
style="height: 140px; width: 150px;"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</t>
|
|
</template>
|
|
|
|
<!-- Action report appointment card -->
|
|
<record id="action_appointment_card" model="ir.actions.report">
|
|
<field name="name">Appointment Card</field>
|
|
<field name="model">dental.appointment</field>
|
|
<field name="report_type">qweb-pdf</field>
|
|
<field name="report_name">dental_clinical_management.dental_clinical_management_appointment_card</field>
|
|
<field name="report_file">dental_clinical_management.dental_clinical_management_appointment_card</field>
|
|
<field name="binding_model_id" ref="dental_clinical_management.model_dental_appointment"/>
|
|
</record>
|
|
</odoo>
|
|
|