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
    • 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 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
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Technical
  3. Field Readonly By Rule v 17.0
  4. Sales Conditions FAQ

Field Readonly By Rule

by Unknown
Odoo

$ 29.54

v 17.0 Third Party
Live Preview
Apps purchases are linked to your Odoo account, please sign in or sign up first.
You bought this module and need support? Click here!
  • Description
  • Manifest
Field Readonly By Rule banner
Odoo 17 Community and Enterprise

Field Readonly By Rule

Configure read-only fields by model with flexible exceptions by user, company, group, or everyone. Add optional conditions and decide whether restrictions apply only to existing records or also during creation.

No sale dependency Form and list views Conditional readonly rules Optional creation lock

4

Application modes

2

Readonly scopes

0

Extra business dependencies

13

Automated test cases

Controlled Field Editing Without Custom Views

Field Readonly By Rule gives administrators a practical way to reduce accidental edits on sensitive fields without creating separate inherited views for every model, team, or company. Define the rule once and let Odoo apply it dynamically to the target model views.

  • ✓ Protect customer, order, accounting, HR, or custom model fields.
  • ✓ Choose exactly who can continue editing protected fields.
  • ✓ Apply restrictions to selected fields or every visible field.
  • ✓ Keep creation editable by default or lock fields from the first save flow.

Designed for administrators

No developer action is required for day-to-day rule changes. A rule manager can adjust the model, fields, scope, conditions, and exceptions directly from the Odoo interface.

Key Features

Readonly by Model

Select any non-transient model and define which fields should become read-only in form and list views.

Selected or All Fields

Apply a rule to specific fields or protect every field visible in the configured model views.

Conditional Rules

Use a readonly condition to lock fields only when the current record matches a domain-style expression.

Flexible Exceptions

Allow editing by selected users, companies, groups, or apply the restriction to everyone.

Creation Control

Keep creation forms editable by default, or enable the same readonly restriction while users create records.

Manager Bypass

Rule managers are never locked out, so they can always review, correct, or disable a configuration.

Rule Management

Administrators can review active rules from a single list, including the target model, readonly scope, condition, creation behavior, application mode, and active status.

Field readonly rules list view
Field Readonly Rules available from the Technical menu, with active rules and their application mode visible in the list.

Rule Configuration

Each rule defines the model, the readonly scope, selected fields when needed, the optional condition, and who can still edit those fields.

Field readonly rule form view
Example rule for Sales Orders, protecting selected fields for everyone while keeping the configuration editable by rule managers.

Readonly Result on Business Records

When a user opens a business record affected by a rule, the configured fields are shown as readonly directly in the native Odoo form. Unprotected fields and normal workflow buttons keep working according to the user's access rights.

Business record with readonly fields applied
Sales quotation example where the selected field is locked by the readonly rule while the document remains usable.

Rule Application Modes

Mode Behavior
Everyone The configured fields are read-only for all users, except rule managers.
Users Only the selected users can edit the configured fields.
Companies The fields remain editable only in the selected companies.
Groups Only users that belong to the selected groups can edit the configured fields.

How It Works

1

Create a readonly rule

2

Select the target model

3

Choose selected or all fields

4

Add condition and exceptions

5

Open an existing record

Creation-Friendly or Creation-Locked

By default, rules apply when users edit existing records. If a field must also be protected before the first save, enable Apply on Creation on the rule and the same readonly behavior will be applied in creation forms.

Readonly Conditions

Leave the condition as Match all records to protect a field on every record of the selected model, or add a condition when only specific records should be locked.

Supported operators: =, !=, >, >=, <, <=, in, not in.

Configuration Checklist

  • Install the module and assign the rule manager group.
  • Open Field Readonly Rules from the technical menu.
  • Create a rule and select the model to protect.
  • Choose Selected Fields or All Fields.
  • Add a condition if the rule should only affect matching records.
  • Enable Apply on Creation only when new records must start locked.
  • Choose Everyone, Users, Companies, or Groups.

Recommended Use Cases

  • Prevent accidental changes on validated partner fields.
  • Limit editing of commercial fields after record creation.
  • Lock fields only when a record reaches a specific status.
  • Protect custom model fields without creating extra views.
  • Keep company-specific fields editable only in selected companies.
  • Allow operational teams to edit only the fields they own.

Frequently Asked Questions

Does it block record creation?

Not by default. Enable Apply on Creation on a rule when the configured fields must also be readonly on new records.

Can I protect all fields of a model?

Yes. Choose All Fields in the readonly scope and the rule will protect every field shown in the model views.

Can I apply a rule to everyone?

Yes. Choose Everyone in the application mode. Only rule managers bypass the readonly behavior.

Does this replace access rights?

No. This is a view-level readonly helper. It does not replace Odoo access rights or record rules.

Important note

This module applies visual restrictions in Odoo views. It does not block backend writes made through imports, RPC calls, automated actions, or custom server-side code.

Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 411
Technical Name field_readonly_by_rule
LicenseAGPL-3

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
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

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