Form View Edit, Save & Discard Control for Odoo
Since Odoo 16, form views open directly in edit mode by default, which makes accidental modifications easy â a user only scrolling through a record can unintentionally change a field. This module brings back the controlled, readonly-first approach for every model, on every form view, without any per-view or per-model configuration.
2 Hours of FREE Support Included
Every purchase includes up to 2 hours of free support â for help with installation, configuration, or fixing any bug you find in this module. Buy with confidence; we're here to make sure it works for you.
Key Features
- Readonly by Default â all form views open in readonly mode, preventing accidental edits across every model in the database
- Explicit Edit Button â users must click Edit to intentionally enter edit mode, restoring the classic Odoo workflow
- Discard Always Visible in Edit Mode â the Discard button appears as soon as Edit is clicked, even before any field is touched
- Save Appears Only on Changes â the Save button shows only once an actual field modification is made, keeping the toolbar clean
- Auto Return to Readonly â after Save or Discard, the form automatically switches back to readonly mode
- Works for All Models â no model-specific configuration; applies globally to every form view, including custom modules
- No Data Migration Needed â pure client-side/view-behavior change; installing or uninstalling does not touch existing records
How This Module Helps Your Business
In day-to-day operations, users frequently open a Sales Order, an Invoice, a Purchase Order, or an Employee record just to check information â a quantity, a due date, a status. Because standard Odoo form views load directly in edit mode, a stray click or an accidental keystroke can silently modify a field, and that change gets saved on the next navigation or automatic save trigger. For companies that migrated from Odoo 14/15 to a newer version, this is one of the most common complaints from accounting and operations teams who were used to a strict Edit/Save/Discard cycle.
By enforcing readonly mode as the default state on every form view, this module removes
that risk. A warehouse clerk reviewing a Delivery Order, an accountant checking a Journal Entry, or a
sales manager scanning a customer record can browse freely without worrying about unintentionally
overwriting data. Only when a user deliberately clicks Edit does the record become editable, and only
genuine field changes trigger the Save button â giving teams a clear, auditable action point before
any data is committed.
How It Works
Form View Default Behavior
Before installing â form opens directly in edit mode (risk of accidental changes):
Forms open directly in edit mode in standard Odoo, allowing unintended modifications the moment a user clicks into a field.

After installing â form opens in readonly mode with an explicit Edit button:
Forms open in readonly mode. Users see the record clearly and click Edit only when they intend to make changes.

Editing a Record
Clicking Edit enables edit mode and immediately shows the Discard button, so the user can back out at any time â even before touching a field.

Save Button Appears After Field Changes
Once a field value is modified, the Save button appears alongside Discard, so the user can consciously commit or revert their changes.

Installation & Configuration
- Download the module from the Odoo App Store and place it in your custom addons path (or upload it directly via Odoo.sh).
- Go to Apps, remove the default Apps filter, search for "Form View Edit" (or the module's technical name
sh_form_view_edit), and click Activate/Install. - No further configuration, menu setup, or record-level settings are required â the readonly-first behavior applies automatically to every form view once the module is installed.
- Refresh the browser tab and open any form (Contacts, Sales, Invoicing, Inventory, CRM, or a custom module) to confirm the record opens in readonly mode with a visible Edit button.
- To revert to the standard Odoo behavior, simply uninstall the module from Apps â no data or view definitions are altered by installation or removal.
Who Is This For
Built for Odoo administrators and businesses â particularly those who migrated from an older Odoo version â who want the classic readonly-first Edit/Save/Discard workflow restored across the entire system, instead of forms opening directly in edit mode. Suitable for finance teams, warehouse and inventory staff, HR administrators, and any organization where accidental record changes need to be minimized without adding per-user or per-model configuration overhead.
Why This Module Matters
Data integrity depends on deliberate actions, not accidental ones. Removing the confirmation step between "viewing" and "editing" a record increases the chance of silent data corruption, especially in high-traffic models like Sales Orders, Invoices, and Stock Moves. This module reinstates that confirmation step system-wide with a single install â no view inheritance to write, no per-model XML to maintain, and no training required beyond "click Edit before you change something."
Compatibility
| Editions | Community & Enterprise |
| Platforms | Odoo.sh, On-Premise |
| Odoo Online (SaaS) | Not supported |
Frequently Asked Questions
- Does this affect all users, or can I restrict it to specific user groups?
- The current version applies the readonly-first behavior globally to all users. For role-based edit access (e.g., only certain groups can edit certain models), contact us for a customized version.
- Will this conflict with other Odoo modules?
- The module uses a standard Odoo JavaScript view extension that applies globally, without overriding individual view XML files. It has been tested across standard modules including Sales, Purchase, Inventory, Accounting, HR, and CRM.
- Does it work with custom models and views?
- Yes â since it applies globally at the form-view-engine level, custom module forms will also open in readonly mode with the Edit button, with no extra development needed.
- Is this compatible with Odoo Community edition?
- Yes â the module works on both Community and Enterprise editions, on Odoo.sh and On-Premise deployments. It is not available for Odoo Online (SaaS).
- Does installing or uninstalling this module affect existing data?
- No. The module only changes form view behavior (readonly/edit toggling); it does not modify, delete, or migrate any existing records.
Website: www.nimmutechnologies.com
Email: subashmca2017@gmail.com
Telegram: https://t.me/Chubbu007
We aim to respond to all support requests within one business day.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 56 |
| Technical Name |
sh_form_view_edit |
| License | OPL-1 |
| Website | https://www.nimmutechnologies.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module