mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] display a helper to add a tooltip on a field. Display the tooltip on list views. One tooltip per field and do not handle user specific tooltips
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
<record model="ir.ui.view" id="ir_model_fields_tooltip_form_view">
|
||||
<field name="model">ir.model.fields.tooltip</field>
|
||||
<field name="inherit_id" eval="0" />
|
||||
<field name="arch" type="xml">
|
||||
<form duplicate="0">
|
||||
<sheet>
|
||||
|
||||
22
web_field_tooltip/views/res_users.xml
Normal file
22
web_field_tooltip/views/res_users.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2023 ACSONE SA/NV
|
||||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
|
||||
<record model="ir.ui.view" id="res_users_form_view">
|
||||
<field name="model">res.users</field>
|
||||
<field name="inherit_id" ref="base.view_users_form_simple_modif" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='email']" position="after">
|
||||
<field name="tooltip_show_add_helper_allowed" invisible="1" />
|
||||
<field
|
||||
name="tooltip_show_add_helper"
|
||||
widget="boolean_toggle"
|
||||
readonly="0"
|
||||
attrs="{'invisible': [('tooltip_show_add_helper_allowed', '=', False)]}"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user