mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
32 lines
1.4 KiB
XML
32 lines
1.4 KiB
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
|
|
<record model="ir.actions.act_window" id="hotel_reservation_action_checkin">
|
|
<field name="name">Hotel folio checkin</field>
|
|
<field name="res_model">hotel.reservation</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="domain">[('real_checkin','=', datetime.datetime.now().strftime('%Y-%m-%d')),
|
|
('state', 'in', ['confirm']),
|
|
('reservation_type', 'not in', ['out'])]</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="hotel_reservation_action_checkout">
|
|
<field name="name">Hotel folio checkout</field>
|
|
<field name="res_model">hotel.reservation</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="domain">[('real_checkout','=', datetime.datetime.now().strftime('%Y-%m-%d')),
|
|
('state', 'in', ['booking']),
|
|
('reservation_type', 'not in', ['out'])]</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="hotel_calendar_action_form_tree">
|
|
<field name="name">Hotel Calendar</field>
|
|
<field name="res_model">hotel.calendar</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
</odoo>
|