Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Disable or remove/hide Add properties option in odoo17 forms.

Subscriure's

Get notified when there's activity on this post

This question has been flagged
propertiespropertypermitionodoo 17
4 Respostes
2026 Vistes
Avatar
milan m

I'm trying to figure out which permission or access right controls the visibility of the "Add Properties"option in the action menu on CRM lead/opportunity forms Odoo17 Community.

  • The option is visible to both Admin and Sales users.
  • I've tried adjusting various access rights and security settings, but none of them seem to hide this action.

Does anyone know which specific permission or group is responsible for showing the "Add Properties" action? I'd like to remove or restrict it for users, but I can't find the right setting. 

0
Avatar
Descartar
milan m
Autor

i tried hiding Add Properties using custom module js file code to remove menu action, but that too not working.
patch(FormController.prototype, {
getStaticActionMenuItems() {
const items = this._super();

// Remove 'Add Properties' if it exists
if (items.addPropertyFieldValue) {
delete items.addPropertyFieldValue;
}

return items;
},
});

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

Hi,

Inherit the form view for CRM leads and remove the action_add_property entry from the action menu using XML view inheritance.


Example:

<record id="crm_lead_form_inherit_no_props" model="ir.ui.view">

    <field name="name">crm.lead.form.no.properties</field>

    <field name="model">crm.lead</field>

    <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>

    <field name="arch" type="xml">

        <xpath expr="//div[@class='o_dropdown_menu']//a[contains(@data-menu,'action_add_property')]" position="attributes">

            <attribute name="groups">base.group_system</attribute>

        </xpath>

    </field>

</record>


Hope it helps.

0
Avatar
Descartar
Avatar
milan m
Autor Best Answer


import { patch } from "@web/core/utils/patch";
import { FormController } from "@web/views/form/form_controller";
patch(FormController.prototype, {
    async getStaticActionMenuItems() {
        const items = await super.getStaticActionMenuItems();
        if (items?.addPropertyFieldValue) {
            console.log("Removing 'Add Properties'");
            delete items.addPropertyFieldValue;
        }    return items;
    },
});

This custom module js patch worked for Odoo17 to hide add properties action menu

0
Avatar
Descartar
Avatar
Ruchita
Best Answer

In Odoo 17, the "Add Properties" option usually appears when developer mode is enabled. It allows users to attach technical fields (like x_studio fields or properties) directly to records. If you want to hide or disable this option, here are a few things you can do:

✅ Solution:

  1. Turn Off Developer Mode:
    • The "Add Properties" option only shows when developer mode is on.
    • If you're a regular user and don’t need it, turning off developer mode will remove the option.
  2. Use Web Assets (Custom JS) to Hide It:
    • If you want to hide it for all users or even in dev mode, you can use JavaScript.
    • Add this code in your custom module:
  3. Limit Access with User Groups (Advanced):
    1. If your users have technical access, consider creating a user group without access to developer features.



-1
Avatar
Descartar
Chris TRINGHAM

More LLM / AI - this is not a solution.

Avatar
D Enterprise
Best Answer

Hii,

Modify the View XML Based on User Groups

The most effective and cleanest solution is to control the visibility of the "Add Properties" action using the XML view and the groups attribute. This will ensure that the action is visible only to specific user groups (like Sales Manager) and hidden for others.

Steps to Modify the View:
  1. Identify the View: Find the XML view for the CRM lead/opportunity form (crm.lead.form), where the "Add Properties" button or action is defined.
  2. Modify the View:
    • Go to Settings → Technical → User Interface → Views.
    • Search for crm.lead.form.
    • Look for the <button> or <menu> entry related to "Add Properties" or similar.
  3. Add the groups Attribute
  4. :
    • Modify the button or menu entry to make it visible only to specific groups (e.g., Sales Manager).

<button name="add_properties" type="object" string="Add Properties" groups="base.group_sale_manager"/>

  1. In this example, the button will only be visible to users in the Sales Manager group (base.group_sale_manager).
  2. Save and Update the Module:
    • After modifying the view, restart Odoo and update your module to apply the changes.

This approach directly modifies the visibility of the "Add Properties" button in the CRM lead/opportunity form, making it visible only to the selected user group(s).

2. Adjust User Groups and Permissions

You also need to ensure that only the appropriate user groups have access to the relevant permissions. Here’s how:

Steps to Adjust User Groups:
  1. Go to Users & Companies:
    • Go to Settings → Users & Companies → Users.
    • Select the user for whom you want to restrict access to the "Add Properties" action.
  2. Modify the User’s Groups:
    • Check the User Groups tab for the selected user.
    • Ensure that the user is not part of the Sales Manager group (base.group_sale_manager), unless you want to give them access.
    • You can assign the user to a group like Sales User (base.group_sale_user) if you want to restrict access to certain features.
  3. Adjust the Group Permissions:
    • Sales Manager typically has more permissions, including managing properties. If you want to restrict access, ensure the user is assigned to a group with limited permissions, such as Sales User.
    • You can also create custom user groups with specific permissions for greater control.

i hope it is use full

-2
Avatar
Descartar
Chris TRINGHAM

No it's not! Seems to come from LLM / AI.

milan m
Autor

This Won't work for Add Properties

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
How to upload data to the new Properties fields in Odoo 16? I'm getting this error 'NoneType' object is not callable
properties property odoo16features NoneType
Avatar
Avatar
1
de febr. 23
5032
Issue with Properties app – renewed contracts not updating Solved
properties
Avatar
Avatar
1
de nov. 25
446
Send Email after payment creted for invoice
odoo 17
Avatar
Avatar
Avatar
2
de set. 25
2734
How can I configure a partner receivable account depending on the company Solved
property
Avatar
Avatar
Avatar
3
de jul. 25
9781
Why Doesn't the Hamburger Menu Show for My Custom Group User Despite Adding ir_ui_menu Access Right?
odoo 17
Avatar
Avatar
1
de maig 25
2218
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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