[WIP] Add confirm message to import button

This commit is contained in:
Pablo
2018-11-09 18:42:32 +01:00
parent baa64c8590
commit ceadc2fefd
2 changed files with 5 additions and 36 deletions

View File

@@ -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>

View File

@@ -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>