mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] Wizard Node Reservation
This commit is contained in:
@@ -5,30 +5,49 @@
|
||||
<field name="name">hotel.node.reservation.wizard</field>
|
||||
<field name="model">hotel.node.reservation.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Users">
|
||||
<sheet>
|
||||
<form string="Reservation Wizard" >
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="node_id" placeholder="Hotel" required="1"
|
||||
attrs="{'readonly': [('node_id', '!=', False)]}"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group attrs="{'invisible': [('node_id', '=', False)]}">
|
||||
<group name="room_type">
|
||||
<field name="room_type_id">
|
||||
<tree>
|
||||
<field name="name" string="Room Type" readonly="1"/>
|
||||
<field name="remote_room_type_id" readonly="1"/>
|
||||
</tree>
|
||||
</field>
|
||||
<group attrs="{'invisible':[('node_id','=',False)]}">
|
||||
<group>
|
||||
<field name="checkin" required="1" widget="date" />
|
||||
<field name="checkout" required="1" widget="date" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="partner_id"/>
|
||||
</group>
|
||||
</group>
|
||||
<group attrs="{'invisible':[('node_id','=',False)]}">
|
||||
<field name="room_type_wizard_ids" nolabel="1">
|
||||
<tree editable="bottom" create="false" delete="false">
|
||||
<field name="room_type_id" string="Room Type" readonly="1"/>
|
||||
<field name="room_type_availability" readonly="1"/>
|
||||
<field name="rooms_qty"/>
|
||||
<field name="checkin" widget="date" />
|
||||
<field name="checkout" widget="date" />
|
||||
<!--<field name="discount" attrs="{'readonly': [('can_confirm','=',False)]}"/>-->
|
||||
<!--<field name="price" attrs="{'readonly': [('can_confirm','=',False)]}"/>-->
|
||||
<!--<field name="amount_reservation" readonly="1" />-->
|
||||
<!--<field name="total_price" invisible="1" />-->
|
||||
<!--<field name="can_confirm" invisible="1" />-->
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
<footer attrs="{'invisible': [('node_id', '=', False)]}">
|
||||
<button name="create_folio" string="Create Reservations" type="object"
|
||||
class="oe_highlight" />
|
||||
</footer>
|
||||
</sheet>
|
||||
</form>
|
||||
<!--<field name="confirm" invisible="1"/>-->
|
||||
<!--<group colspan="2" class="oe_subtotal_footer">-->
|
||||
<!--<field name="total"/>-->
|
||||
<!--</group>-->
|
||||
<!--<footer>-->
|
||||
<!--<button name="create_folio" string="Create Reservations" type="object"-->
|
||||
<!--class="oe_highlight" />-->
|
||||
<!--</footer>-->
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user