mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] Door Codes in Hotels
This commit is contained in:
23
hotel_door_codes/views/inherit_hotel_reservation.xml
Normal file
23
hotel_door_codes/views/inherit_hotel_reservation.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Hotel Settings -->
|
||||
<data>
|
||||
<!-- Inherit Company view to add 'door_code' in Reservation Form -->
|
||||
<record id="door_code_reservation_form" model="ir.ui.view">
|
||||
<field name="name">door_code.reservation_form</field>
|
||||
<field name="model">hotel.reservation</field>
|
||||
<field name="inherit_id" ref="hotel.hotel_reservation_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page[@name='others']" position="after">
|
||||
<page name="doorcode" string="Códigos entrada">
|
||||
<group>
|
||||
<field name="door_codes" />
|
||||
<field name="box_number" />
|
||||
<field name="box_code" />
|
||||
</group>
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
14
hotel_door_codes/views/inherit_report_viajero.xml
Normal file
14
hotel_door_codes/views/inherit_report_viajero.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Hotel Settings -->
|
||||
<data>
|
||||
<!-- Inherit viajero repdort to add 'door_code' -->
|
||||
<template id="door_code_view_report" inherit_id="hotel_l10n_es.report_viajero_document">
|
||||
<xpath expr="//div[@class='final']" position="replace">
|
||||
<div class ="doorcodes" style="font-size:1.8em;">
|
||||
<span t-field="o.reservation_id.door_codes"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
</data>
|
||||
</odoo>
|
||||
18
hotel_door_codes/views/inherit_res_company.xml
Normal file
18
hotel_door_codes/views/inherit_res_company.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Hotel Settings -->
|
||||
<data>
|
||||
<!-- Inherit Company view to add 'door_code' -->
|
||||
<record id="door_code_view_company_form" model="ir.ui.view">
|
||||
<field name="name">door_code.config.view_company_form</field>
|
||||
<field name="model">res.company</field>
|
||||
<field name="inherit_id" ref="base.view_company_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='cardex_warning']" position="after">
|
||||
<field name="precode" />
|
||||
<field name="postcode" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user