mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] report parte viajero
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<report
|
||||
id="action_report_viajero"
|
||||
string="Parte de Viajero"
|
||||
model="checkin.partner"
|
||||
model="hotel.checkin.partner"
|
||||
report_type="qweb-pdf"
|
||||
name="report.viajero"
|
||||
file="report.viajero"
|
||||
name="hotel_l10n_es.report_viajero"
|
||||
file="hotel_l10n_es.report_viajero"
|
||||
/>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
|
||||
<record id="hotel_checkin_partner_view_form" model="ir.ui.view">
|
||||
<field name="name">hotel.checkin.partner.view.form</field>
|
||||
<field name="model">hotel.checkin.partner</field>
|
||||
@@ -62,5 +62,5 @@
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
.titulo {font-size:0.93em;}
|
||||
.titulo2 {font-size:1.93em;}
|
||||
</t>
|
||||
<t t-call="report.html_container">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="o">
|
||||
<t t-call="hotel_l10n_es.report_viajero_document" t-lang="o.partner_id.lang"/>
|
||||
</t>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
style="width:100%; max-heigth:50px; margin:0 0 1em 0;"/>
|
||||
<p style="font-size:1.16em;">PART OF TRAVELERS ENTRY</p>
|
||||
<p class="numerocheck">Document number: <strong><span t-field="o.id"/></strong>/
|
||||
<span t-if="o.reservation_id.product_id.description_sale"><span t-field="o.reservation_id.folio_id"/> ( <span t-field="o.reservation_id.product_id.description_sale"/>)</span>
|
||||
<span t-if="not o.reservation_id.product_id.description_sale"><span t-field="o.reservation_id"/></span>
|
||||
<span t-if="o.reservation_id.room_id.description_sale"><span t-field="o.reservation_id.folio_id"/> ( <span t-field="o.reservation_id.room_id.description_sale"/>)</span>
|
||||
<span t-if="not o.reservation_id.room_id.description_sale"><span t-field="o.reservation_id"/></span>
|
||||
</p>
|
||||
<p style="font-size:0.65em;"> Total amount (Reservation Card): <strong><span t-field="o.reservation_id.folio_id.amount_total"/></strong></p>
|
||||
<p><strong>CIF: <span t-field="company.vat"/></strong><br/>
|
||||
@@ -30,21 +30,21 @@
|
||||
<td width="40%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
Document number</td>
|
||||
<td width="100%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
<strong> <span t-field="o.partner_id.poldocument"/></strong></td>
|
||||
<strong> <span t-field="o.document_number"/></strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
Type</td>
|
||||
<td width="100%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
<strong>
|
||||
<t t-esc="dict(o.partner_id.fields_get(allfields=['documenttype'])['documenttype']['selection'])[o.partner_id.documenttype]"/>
|
||||
<t t-esc="dict(o.partner_id.fields_get(allfields=['document_type'])['document_type']['selection'])[o.partner_id.document_type]"/>
|
||||
</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
Expedition date</td>
|
||||
<td width="100%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
<strong> <span t-field="o.partner_id.polexpedition" t-options='{"format": "d MMMM y"}'/></strong></td>
|
||||
<strong> <span t-field="o.partner_id.document_expedition_date" t-options='{"format": "d MMMM y"}'/></strong></td>
|
||||
</tr>
|
||||
</table><br/>
|
||||
</div>
|
||||
@@ -86,7 +86,7 @@
|
||||
<td width="40%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
Origin</td>
|
||||
<td width="100%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
<strong> <span t-field="o.partner_id.code_ine"/></strong></td>
|
||||
<strong> <span t-field="o.partner_id.code_ine_id"/></strong></td>
|
||||
</tr>
|
||||
</table><br/>
|
||||
</div>
|
||||
@@ -148,21 +148,21 @@
|
||||
<td width="40%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
Document number</td>
|
||||
<td width="100%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
<strong> <span t-field="o.partner_id.poldocument"/></strong></td>
|
||||
<strong> <span t-field="o.partner_id.document_number"/></strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
Type</td>
|
||||
<td width="100%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
<strong>
|
||||
<t t-esc="dict(o.partner_id.fields_get(allfields=['documenttype'])['documenttype']['selection'])[o.partner_id.documenttype]"/>
|
||||
<t t-esc="dict(o.partner_id.fields_get(allfields=['document_type'])['document_type']['selection'])[o.partner_id.document_type]"/>
|
||||
</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
Expedition date</td>
|
||||
<td width="100%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
<strong> <span t-field="o.partner_id.polexpedition" t-options='{"format": "d MMMM y"}'/></strong></td>
|
||||
<strong> <span t-field="o.partner_id.document_expedition_date" t-options='{"format": "d MMMM y"}'/></strong></td>
|
||||
</tr>
|
||||
</table><br/>
|
||||
</div>
|
||||
@@ -204,7 +204,7 @@
|
||||
<td width="40%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
Origin</td>
|
||||
<td width="100%" style="padding-left:3px;border:double; border-width: 1px">
|
||||
<strong> <span t-field="o.partner_id.code_ine"/></strong></td>
|
||||
<strong> <span t-field="o.partner_id.code_ine_id"/></strong></td>
|
||||
</tr>
|
||||
</table><br/>
|
||||
</div>
|
||||
|
||||
@@ -107,7 +107,7 @@ class CheckinWizard(models.TransientModel):
|
||||
@api.multi
|
||||
def pdf_viajero(self, cardex_id):
|
||||
cardex = self.env['cardex'].search([('id', '=', cardex_id)])
|
||||
return self.env['report'].get_action(cardex, 'report.viajero')
|
||||
return self.env['report'].get_action(cardex, 'action.report.viajero')
|
||||
|
||||
@api.multi
|
||||
def action_save_check(self):
|
||||
|
||||
Reference in New Issue
Block a user