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.
27 lines
1.1 KiB
27 lines
1.1 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!--
|
|
This XML file defines a customization to the Odoo user interface for the
|
|
'res.users' model.
|
|
It adds a new page after 'Preferences' for Weather Settings, allowing users to
|
|
input their API key.
|
|
-->
|
|
<record id="view_users_form" model="ir.ui.view">
|
|
<field name="name">res.users.view.form.inherit.user.weather.notification</field>
|
|
<field name="model">res.users</field>
|
|
<field name="type">form</field>
|
|
<field name="inherit_id" ref="base.view_users_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page[@name='preferences']" position="after">
|
|
<page string="Weather Settings" name="oauth">
|
|
<group>
|
|
<field name="api_key"/>
|
|
<field name="location_set"/>
|
|
<field name="city" attrs="{'invisible':[
|
|
('location_set', '!=', 'manual')]}"/>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|