Files
pms/hotel_calendar_channel_connector/views/hotel_reservation.xml
2019-06-05 17:53:43 +02:00

39 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Tree view of hotel reservation -->
<record model="ir.ui.view" id="hotel_toassign_reservation_view_tree">
<field name="name">hotel.toassign.reservation.tree</field>
<field name="model">hotel.reservation</field>
<field name="inherit_id" ref="hotel.hotel_reservation_view_tree" />
<field name="arch" type="xml">
<field name="state" position="before">
<button icon="fa fa-2x fa-thumb-tack"
type="object"
class="oe_stat_button"
name="mark_as_readed"
attrs="{'invisible':[('to_assign','=', False)]}"
help="Mark as Read"
/>
<field name="to_assign" invisible="1"/>
</field>
</field>
</record>
<record id="hotel_reservation_view_form" model="ir.ui.view">
<field name="model">hotel.reservation</field>
<field name="inherit_id" ref="hotel.hotel_reservation_view_form" />
<field name="arch" type="xml">
<xpath expr="//button[@name='unify']" position="after">
<field name="to_assign" invisible="1"/>
<button name="mark_as_readed" string="Mark as Read"
type="object" class="oe_highlight"
icon="fa-1x fa-thumb-tack"
attrs="{'invisible':[('to_assign','=', False)]}" />
</xpath>
</field>
</record>
</data>
</openerp>