mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
39 lines
1.6 KiB
XML
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>
|