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
    • Artificial Intelligence
    • 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
    • Property 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 IndustriesInauguration Odoo Lyon
  • 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
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

Changing field restrictions/attributes from UI

Subscribe

Get notified when there's activity on this post

This question has been flagged
fieldscustomizationrestrictionattributesodoo
7 Replies
7860 Views
Avatar
NT007

I understand that in order to customise attributes of a field (e.g. make the field read-only/invisible/mandatory) or to set a group restriction, it is required to add the necessary conditions (i.e. setting the "groups" attribute and the "invisible" or "readonly" attributes) in the code, either in XML level or in Python level.


However, I would like to know whether there is a way to incorporate such changes through a UI, so that later on, say if a certain restriction needs to be removed from a field, it would be possible to do it without changing the code. Or else are there any modules that are developed that would give such capabilities?


Thanks in advance!

1
Avatar
Discard
Avatar
Temur
Best Answer

you can edit views through ui, using "developer mode".  just activate developer mode (click admin username at right top corner of ui, then in dropdown menu click "About Odoo", then in the popup window click "Activate The Developer Mode")  and then use options provided by developer mode (edit form view, edit tree view, etc...).

1
Avatar
Discard
NT007
Author

Thanks again for your answer Temur! But what I need to know is whether there is any possibility in making fields customizable through the UI without using the developer mode. For example, if the same module is deployed to two clients and if one client wants a certain field to be mandatory and if the other client doesn't, would it be possible to provide something like a different UI under settings or something where the client can simply click a checkbox and say the field should be mandatory or not? I hope my question makes some sense...

Temur

please see "Settings/Technical/Database Structure/Models" page. maybe it's what you're looking for? If client understands enough what's model/field and can find the right one, then it's possible to click a checkbox to make that field readonly or required at this page.

Temur

you tried option "manage views" in "developer mode" ? here also used checkboxes for Required/Readonly/Invisible and so on... use developer mode, click "manage views" then in opened window click "edit" then find field you want to edit and click edit button at right side of list in the row (third button).

Avatar
NT007
Author Best Answer

In my honest opinion it is silly that this community has a restriction of requiring 30 karma to comment on an answer, because it won't allow the person with less than 30 karma like myself asking the question to further clarify any doubts he/she has or further elaborate his question so that the person who is answering can get a clear idea. Hence I have no option but to put my comment as an answer, I apologise for that.

Thank you Temur for taking the time to answer my question. Having said that, I do not know who picked this as the accepted answer because clearly I didn't do it. Whether my account is compromised is something I have to look into, in which case, I apologise again. And this is not the answer I was looking for either.

What I need to know is without asking the client to access the developer mode, whether there is any other option he/she can use to change the attributes of fields in a given form.

Eg, In the HR recruitment module, the Name of the applicant is mandatory while the work phone is not. Let's assume that the client wants to make the work phone mandatory as well. Is there a way where he/she can do that without using developer mode? Are there any modules developed which provide such functionality?

0
Avatar
Discard
Temur

I upvoted your question, so you've enough karma to comment.

Temur

anyone with high karma can mark answers as accepted so it was reviewed from someone with high karma and marked as accepted... don't worry for your account, it should not be compromised.

Temur

I read once again your question and I've got feeling that you're describing the "developer mode". everything you're asking for is possible to do using developer mode from UI, change field properties, make field mandatory, invisible, readonly, and vice versa. and it's without necessity to access a code or xml files as you asked. I think "developer mode" is closest thing to your requirements for now. Please update your answer if you'll find a better way.

NT007
Author

I see... Thanks for your help Temur! :) I added the comment to your answer.

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
Error: Field does not exists in odoo12
fields customization
Avatar
Avatar
1
Jan 20
6336
Make tag management only available for Managers
fields restriction
Avatar
0
Nov 16
2391
Purchase Order Module..Cannot Install..Odoo8
customization odoo
Avatar
0
Mar 15
5610
Showing Installed Module on Ubuntu???
customization odoo
Avatar
Avatar
1
Mar 15
5320
No Widget Displayed?
customization odoo
Avatar
0
Mar 15
4910
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 Svenska ภาษาไทย 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