Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Verkauf
    • CRM
    • Verkauf
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Künstliche Intelligenz
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preise
  • Hilfe
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

Hide "My Profile" menu from specific users in Odoo 17

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
settingsdashboardaccess_rules
2 Antworten
708 Ansichten
Avatar
Abdallah Mahmoud

Hello everyone,

I am working with Odoo 17 and I would like to know if it is possible to hide the "My Profile" menu (from the user dropdown in the top-right corner) for specific users.

My goal is to prevent certain users from accessing their profile from this menu.

I have noticed that the view used when opening "My Profile" from the top menu is different from the one used when accessing the user form from the Settings menu, even though both are based on the same model (res.users).

So my questions are:

  • Is there a way to hide or restrict access to the "My Profile" menu for specific users?
  • Why does Odoo use a different view in this case?
  • What would be the best approach to control this behavior (security rules, view customization, or overriding the action)?

Any guidance would be appreciated.

Thank you!

0
Avatar
Verwerfen
Codesphere Tech

Hello,
You can patch the UserMenu and remove items based on condition.

You can refer this free app: https://apps.odoo.com/apps/modules/17.0/cst_hide_user_submenus
Hope this helps
Thanks

Avatar
Jainesh Shah(Aktiv Software)
Beste Antwort

Hello Abdallah Mahmoud,


In Odoo 17, the "My Profile" / Preferences menu (top-right user dropdown) is handled by the frontend (OWL) and not purely by backend views or record rules. That’s why controlling it requires a different approach.


✅ Answers to Your Questions

1. Is it possible to hide "My Profile" for specific users?

Yes, it is possible — but not using standard XML views or record rules.

You need to patch the UserMenu (OWL component) and control visibility using a security group.

2. Why does Odoo use a different view?

Although both use the res.users model:

  • Top-right menu (Preferences / My Profile) → triggered via frontend JS (OWL component)
  • Settings → Users → standard backend form view (XML)

So the difference comes from:

  • Frontend-driven action vs backend action
  • Different context and rendering layers
3. Best approach to control this?

The recommended approach is:

  • Create a security group
  • Patch the UserMenu component
  • Hide menu items conditionally based on user group

💡 Working Solution

🔹 Step 1: Create Security Group
<record id="group_hide_user_menu" model="res.groups">
    <field name="name">Hide User Menu Items</field>
    <field name="category_id" ref="base.module_category_hidden"/>
</record>
🔹 Step 2: Patch UserMenu (JavaScript)

📁 your_module/static/src/js/user_menu_patch.js

/** @odoo-module **/

import { UserMenu } from "@web/webclient/user_menu/user_menu";
import { patch } from "@web/core/utils/patch";
import { onWillStart } from "@odoo/owl";

const HIDDEN_IDS = [
    "settings",   // Preferences (My Profile)
];

const RESTRICT_GROUP = "your_module.group_hide_user_menu";

patch(UserMenu.prototype, {
    setup() {
        super.setup(...arguments);
        this.hideMenuItems = false;

        onWillStart(async () => {
            this.hideMenuItems = await this.user.hasGroup(RESTRICT_GROUP);
        });
    },

    getElements() {
        const elements = super.getElements(...arguments);
        if (this.hideMenuItems) {
            return elements.filter((el) => {
                if (el.type === "separator") return false;
                return !HIDDEN_IDS.includes(el.id);
            });
        }
        return elements;
    },
});
🔹 Step 3: Load the JS

Make sure to load this JS file in backend assets (web.assets_backend) of your module.



If you have any questions, feel free to reach out.

Hope this helps!

 

Thanks and Regards,

Email: odoo@aktivsoftware.com

0
Avatar
Verwerfen
Avatar
Zehntech Technologies Inc.
Beste Antwort

Hello, 

In standard Odoo 17, there is no direct configuration to hide the “My Profile” menu for specific users, as it is part of the core user dropdown and accessible to all logged-in users by default.

However, you can achieve this through customization:

  • UI Customization (JS/XML): Hide the menu item based on user groups.
  • Access Control: Restrict write access on res.users to prevent users from modifying their own profile (even if they access it).
  • Action/View Override: Customize the action linked to “My Profile” to control behavior or redirect access.

Regarding your observation — Odoo uses a different view for “My Profile” to provide a simplified, user-friendly interface compared to the full user form available in Settings.

The best approach typically combines UI hiding (for better UX) and access rights (for security enforcement).

Hope this works for you! If you need any help implementing this or want a more optimized approach, feel free to reach out for further discussion

Regards,

Zehntech Technologies Inc.

santosh.sekwadia@zehntech.com

0
Avatar
Verwerfen
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
Odoo14 accounting advisor cannot update currency
settings permissions access_rules v14
Avatar
0
Okt. 21
3609
USUARIO DE LECTURA - ODOO
settings
Avatar
Avatar
Avatar
3
Apr. 26
2121
Fiscal localizations
settings
Avatar
Avatar
2
Apr. 25
12463
Where is the "Translated Terms" Menu in Odoo 16? Gelöst
settings
Avatar
Avatar
Avatar
Avatar
Avatar
5
März 25
23590
Get Blanked after define simple dashboard
dashboard
Avatar
Avatar
1
Aug. 24
3517
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now