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.
26 lines
1.2 KiB
26 lines
1.2 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<!-- Adding views in res.users to add fields for API key, location, and city -->
|
|
<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">
|
|
<!-- Inserting a new page after the 'references' page -->
|
|
<xpath expr="//page[@name='references']" position="after">
|
|
<page string="Weather Settings">
|
|
<group>
|
|
<!-- Field for API key -->
|
|
<field name="api_key"/>
|
|
<!-- Field for location setting -->
|
|
<field name="location_set"/>
|
|
<!-- Field for city (visible only if location_set is 'manual') -->
|
|
<field name="city"
|
|
attrs="{'invisible': [('location_set', '!=', 'manual')]}"/>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
</odoo>
|
|
|