You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
2.6 KiB
49 lines
2.6 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record id="action_weather_conf_form" model="ir.ui.view">
|
|
<field name="name">user.weather.map.conf.form</field>
|
|
<field name="model">user.weather.map.config</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Configure Weather" class="oe_form_configuration">
|
|
<header>
|
|
<button string="Apply" type="object" name="execute_weather" class="oe_highlight"/>
|
|
</header>
|
|
<separator string="Weather" groups="base.group_user"/>
|
|
<group name="Weather" groups="base.group_user">
|
|
<group>
|
|
<field name="user_id" />
|
|
<field name="method" widget="radio"/>
|
|
<label for="street" string="Address"/>
|
|
<div>
|
|
<field name="street" placeholder="Street..." />
|
|
<div class="address_format">
|
|
<field name="city" placeholder="City" style="width: 40%" />
|
|
<field name="state_id" class="oe_no_button" placeholder="State" style="width: 37%" options="{"no_open": True}" on_change="onchange_state(state_id)" domain="[('country_id','=',country_id)]" />
|
|
<field name="zip" placeholder="ZIP" style="width: 20%" />
|
|
</div>
|
|
<field name="country_id" placeholder="Country" class="oe_no_button" options="{"no_open": True}" />
|
|
</div>
|
|
<field name="appid" />
|
|
</group>
|
|
|
|
<group>
|
|
<group colspan="2" col="2">
|
|
<separator string="Geo Localization" colspan="2"/>
|
|
<field name="u_longitude" attrs="{'required':[('method','!=','address')]}"/>
|
|
<field name="u_latitude" attrs="{'required':[('method','!=','address')]}"/>
|
|
</group>
|
|
</group>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_weather_config" model="ir.actions.act_window">
|
|
<field name="name">Weather Settings</field>
|
|
<field name="res_model">user.weather.map.config</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">inline</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|
|
|