İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Yapay Zeka
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım
Toplulukla etkileşime geçmek için kayıtlı olmanız gerekir.
Tüm Gönderiler İnsanlar Rozetler
Etiketler (Tümünü göster)
odoo accounting v14 pos v15
Bu forum hakkında
Toplulukla etkileşime geçmek için kayıtlı olmanız gerekir.
Tüm Gönderiler İnsanlar Rozetler
Etiketler (Tümünü göster)
odoo accounting v14 pos v15
Bu forum hakkında
Yardım

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

Abone Ol

Bu gönderide etkinlik olduğunda bildirim alın

Bu soru işaretlendi
settingsdashboardaccess_rules
2 Cevaplar
722 Görünümler
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
Vazgeç
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)
En İyi Yanıt

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
Vazgeç
Avatar
Zehntech Technologies Inc.
En İyi Yanıt

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
Vazgeç
Tartışma hoşunuza mı gidiyor? Sadece okumakla kalmayın, katılın!

Özel özelliklerden yararlanmak ve harika topluluğumuzla etkileşime geçmek için bugün bir hesap oluşturun!

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Odoo14 accounting advisor cannot update currency
settings permissions access_rules v14
Avatar
0
Eki 21
3615
USUARIO DE LECTURA - ODOO
settings
Avatar
Avatar
Avatar
3
Nis 26
2130
Fiscal localizations
settings
Avatar
Avatar
2
Nis 25
12472
Where is the "Translated Terms" Menu in Odoo 16? Çözüldü
settings
Avatar
Avatar
Avatar
Avatar
Avatar
5
Mar 25
23597
Get Blanked after define simple dashboard
dashboard
Avatar
Avatar
1
Ağu 24
3528
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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