mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] Add confirm message to import button
This commit is contained in:
@@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_channel_hotel_room_type_form" model="ir.ui.view">
|
||||
<field name="name">channel.hotel.room.type.form</field>
|
||||
<field name="model">channel.hotel.room.type</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Hotel Channel Virtual Room">
|
||||
<group>
|
||||
<field name="id" invisible="1" />
|
||||
<field name="backend_id" attrs="{'visible': [('id','=', False)]}" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="external_id" />
|
||||
<field name="channel_short_code" />
|
||||
<field name="ota_capacity" />
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_channel_hotel_room_type_tree" model="ir.ui.view">
|
||||
<field name="name">channel.hotel.room.type.tree</field>
|
||||
<field name="model">channel.hotel.room.type</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Hotel Channel Virtual Room">
|
||||
<field name="backend_id"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -34,12 +34,13 @@
|
||||
<notebook>
|
||||
<page name="import" string="Imports">
|
||||
<group>
|
||||
<label string="Import Reservations" class="oe_inline"/>
|
||||
<label string="Import Room Types" class="oe_inline"/>
|
||||
<div>
|
||||
<button name="import_room_types"
|
||||
type="object"
|
||||
class="oe_highlight"
|
||||
string="Import in background"/>
|
||||
type="object"
|
||||
class="oe_highlight"
|
||||
string="Import in background"
|
||||
confirm="Synchronizing a node automatically updates Room Types in the Central Node. Do you want to proceed?"/>
|
||||
</div>
|
||||
</group>
|
||||
</page>
|
||||
|
||||
Reference in New Issue
Block a user