mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
91 lines
3.1 KiB
XML
91 lines
3.1 KiB
XML
<odoo>
|
|
|
|
<record id="view_wubook_configuration_installer" model="ir.ui.view">
|
|
<field name="name">wubook.installer.form</field>
|
|
<field name="model">wubook.installer</field>
|
|
<field name="inherit_id" ref="base.res_config_installer"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//form[1]" position="attributes">
|
|
<attribute name="string">WuBook Configuration</attribute>
|
|
</xpath>
|
|
<xpath expr="//footer[1]" position="replace">
|
|
<footer>
|
|
<button name="action_next" type="object" string="Continue" class="oe_highlight"/>
|
|
</footer>
|
|
</xpath>
|
|
<xpath expr="//form/separator[1]" position="replace">
|
|
<p class="oe_grey">
|
|
WuBook API Configuration. This wizard will activate push request and synchronize rooms & reservations with Odoo.
|
|
</p>
|
|
<group>
|
|
<field name="wubook_server" />
|
|
</group>
|
|
<group>
|
|
<field name="wubook_user" />
|
|
<field name="wubook_passwd" password="True" />
|
|
</group>
|
|
<group>
|
|
<field name="wubook_lcode" />
|
|
<field name="wubook_pkey" />
|
|
</group>
|
|
<group>
|
|
<field name="activate_push" />
|
|
</group>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_wubook_configuration_installer_parity" model="ir.ui.view">
|
|
<field name="name">wubook.installer.parity.form</field>
|
|
<field name="model">wubook.installer.parity</field>
|
|
<field name="inherit_id" ref="base.res_config_installer"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//form[1]" position="attributes">
|
|
<attribute name="string">WuBook Configuration Parity</attribute>
|
|
</xpath>
|
|
<xpath expr="//footer[1]" position="replace">
|
|
<footer>
|
|
<button name="action_next" type="object" string="Finish Installation" class="oe_highlight"/>
|
|
</footer>
|
|
</xpath>
|
|
<xpath expr="//form/separator[1]" position="replace">
|
|
<p class="oe_grey">
|
|
These models are used as masters
|
|
</p>
|
|
<group>
|
|
<field name="parity_pricelist_id" domain="[('wpid', '!=', False),('wpid', '!=', '')]" required="True" />
|
|
<field name="parity_restrictions_id" domain="[('wpid', '!=', False),('wpid', '!=', '')]" required="True" />
|
|
</group>
|
|
<group>
|
|
<field name="import_data" />
|
|
</group>
|
|
<group attrs="{'invisible':[('import_data', '=', False)]}">
|
|
<group>
|
|
<field name="date_start" attrs="{'required':[('import_data', '=', True)]}" />
|
|
</group>
|
|
<group>
|
|
<field name="date_end" attrs="{'required':[('import_data', '=', True)]}" />
|
|
</group>
|
|
</group>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_wubook_configuration_installer" model="ir.actions.act_window">
|
|
<field name="name">Configure WuBook Data</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">wubook.installer</field>
|
|
<field name="view_id" ref="view_wubook_configuration_installer"/>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
<!--record id="wubook_configuration_installer_todo" model="ir.actions.todo">
|
|
<field name="action_id" ref="action_wubook_configuration_installer"/>
|
|
<field name="sequence">3</field>
|
|
<field name="type">automatic</field>
|
|
</record-->
|
|
|
|
</odoo>
|