[WIP] retrieve data in calendar by product.pricelist and hotel

This commit is contained in:
Pablo
2019-08-22 20:15:36 +02:00
parent 0df9a27fcd
commit 42a53dfd26
8 changed files with 26 additions and 12 deletions

View File

@@ -64,6 +64,7 @@
</button>
</div>
<field name="hotel_id" invisible="0"/>
<h2><field name="name"/></h2>
<h1>
<field name="partner_id" default_focus="1" placeholder="Guest" attrs="{'invisible':[('reservation_type','in',('out'))]}"/>
@@ -237,6 +238,7 @@
<field name="amount_total" sum="Total amount"/>
<field name="pending_amount" sum="Total debt"/>
<field name="invoice_status" />
<field name="hotel_id" invisible="0"/>
</tree>
</field>
</record>

View File

@@ -142,6 +142,7 @@
</div>
<span class="label label-danger" attrs="{'invisible': [('state', 'not in', ('cancelled'))]}">Cancelled Reservation!</span>
<span class="label label-warning" attrs="{'invisible': [('overbooking', '=', False)]}">OverBooking!</span>
<field name="hotel_id" invisible="0"/>
<h1>
<field name="room_id" select="1"
nolabel="1" options="{'no_create': True,'no_open': True}" placeholder="Room"

View File

@@ -22,7 +22,7 @@
</h1>
</div>
<group>
<field name="hotel_id" invisible="1"/>
<field name="hotel_id" invisible="0"/>
</group>
<div>
<separator string="Pricelist Items"/>

View File

@@ -22,7 +22,7 @@
<field name="class_id" />
</group>
<group>
<field name="hotel_id" invisible="1"/>
<field name="hotel_id" invisible="0"/>
<field name="list_price" widget='monetary' options="{'currency_field': 'currency_id', 'field_digits': True}"/>
</group>
</group>

View File

@@ -32,7 +32,7 @@
<notebook>
<page name="information_hotel_room" string="Information">
<group colspan="4" col="4">
<field name="hotel_id" invisible="1"/>
<field name="hotel_id" invisible="0" force_save="1"/>
<field name="floor_id" string="Ubication"
attrs="{'readonly':[('shared_room_id','!=', False)]}" />
<!-- <field name="categ_id" select="1" domain="[('isroomtype','=',True)]" string="Room Type" /> -->