Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

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

Subscribe

Get notified when there's activity on this post

This question has been flagged
propertiespropertypermitionodoo 17
4 Replies
2043 Views
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
Discard
milan m
Author

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
Discard
Avatar
milan m
Author 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
Discard
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
Discard
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
Discard
Chris TRINGHAM

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

milan m
Author

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!

Sign up
Related Posts Replies Views Activity
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
Feb 23
5038
Issue with Properties app – renewed contracts not updating Solved
properties
Avatar
Avatar
1
Nov 25
448
Send Email after payment creted for invoice
odoo 17
Avatar
Avatar
Avatar
2
Sep 25
2734
How can I configure a partner receivable account depending on the company Solved
property
Avatar
Avatar
Avatar
3
Jul 25
9782
Why Doesn't the Hamburger Menu Show for My Custom Group User Despite Adding ir_ui_menu Access Right?
odoo 17
Avatar
Avatar
1
May 25
2222
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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