mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[IMP] base_ical: Allow advanced snippets. Use apikeys with scope.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2023 Hunki Enterprises BV
|
||||
Copyright 2024 initOS GmbH
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl-3.0) -->
|
||||
<data>
|
||||
<record id="view_res_users_form" model="ir.ui.view">
|
||||
@@ -8,27 +9,31 @@
|
||||
<field name="arch" type="xml">
|
||||
<notebook position="inside">
|
||||
<page name="base_ical" string="Calendars">
|
||||
<label for="ical_ids" string="Calendars" />
|
||||
<field name="ical_ids">
|
||||
<tree>
|
||||
<button
|
||||
type="object"
|
||||
name="action_enable"
|
||||
attrs="{'invisible': [('user_active', '=', True)]}"
|
||||
string="Enable"
|
||||
/>
|
||||
<button
|
||||
type="object"
|
||||
name="action_disable"
|
||||
attrs="{'invisible': [('user_active', '=', False)]}"
|
||||
string="Disable"
|
||||
name="action_new_url"
|
||||
string="New URL"
|
||||
/>
|
||||
<field name="name" />
|
||||
<field name="user_active" invisible="1" />
|
||||
<field
|
||||
name="user_url"
|
||||
attrs="{'invisible': [('user_active', '=', False)]}"
|
||||
widget="url"
|
||||
/>
|
||||
</tree>
|
||||
</field>
|
||||
|
||||
<!-- TODO: Re-evaluate after migration to 16.0 -->
|
||||
<label for="api_key_ids" string="Existing Access" />
|
||||
<field
|
||||
name="api_key_ids"
|
||||
domain="[('scope', '=like', 'odoo.plugin.ical.%')]"
|
||||
nolabel="1"
|
||||
readonly="1"
|
||||
>
|
||||
<tree create="false">
|
||||
<field name="name" />
|
||||
<field name="scope" />
|
||||
<field name="create_date" />
|
||||
<button type="object" name="remove" icon="fa-trash" />
|
||||
</tree>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
Reference in New Issue
Block a user