Overview
Form View Edit & Discard Control restores readonly-first Odoo 19 form views, requiring an explicit Edit click, for admins preventing accidental record changes.
Supports v 19.0 — available directly on the Odoo Apps Store.
Description
Odoo 19 opens form views directly in edit mode, which means any user viewing a record can change field values without deliberately choosing to edit. Form View Edit & Discard Control addresses this by restoring the readonly-first behavior that existed in earlier Odoo versions, so users must explicitly click Edit before any field can be modified. This reduces the risk of unintended data changes across all models without requiring per-form configuration.
Key Features
- Readonly First Approach: all Odoo 19 form views open in readonly mode by default, preventing accidental modifications in every model.
- Explicit Edit Button: users must click the Edit button to enter edit mode, restoring the classic Odoo behavior.
- Discard Always Shown in Edit Mode: the Discard button becomes visible immediately after Edit is clicked, even before any changes are made.
- Save Visible on Changes Only: the Save button appears only when the user actually modifies a field, keeping the toolbar uncluttered.
- Auto Return to Readonly: the form view automatically returns to readonly mode after saving or discarding changes.
- Works for All Models: the readonly-first behavior is applied globally to all form views in Odoo 19 with no per-model setup required.
How It Works
Before installing this form view edit control module, Odoo 19 opens forms directly in edit mode, which means fields can be changed as soon as a record is opened. After installation, forms open in readonly mode, and users see the record without the ability to change values until they click Edit.
Once Edit is clicked, the form enters edit mode and the Discard button appears immediately, even if no fields have been changed yet. The Save button only appears once the user actually modifies a field value, so the toolbar reflects whether there are unsaved changes. After the user saves or discards, the form automatically returns to readonly mode, maintaining the same protected state as when the record was first opened.
Business Use Cases
This form view edit control is relevant for businesses and administrators who have migrated from earlier Odoo versions and are used to the classic Edit/Save/Discard flow. Teams that manage sensitive or frequently referenced records — where staff often open forms just to view information rather than change it — can benefit from having modifications blocked until Edit is explicitly clicked.
It is also useful in organizations where multiple users view the same records throughout the day and where accidental field changes during normal browsing could otherwise go unnoticed until a save is triggered. Since the behavior applies globally across all models, administrators do not need to configure readonly rules individually for each form view.
Frequently Asked Questions
Does this module require configuration for each model or form view?
No. The readonly-first behavior and form view edit control are applied globally to all form views in Odoo 19 without any per-model configuration.
Will the Discard button appear even if I have not changed anything?
Yes. Once you click Edit, the Discard button is shown immediately, even before any field values are modified.
When does the Save button appear?
The Save button only appears after you make an actual modification to a field value while in edit mode.
What happens after I save or discard changes?
The form view automatically returns to readonly mode after the save or discard action is completed.
Does this module add any new menus, reports, or automations?
The supplied module information does not specify any additional menus, reports, or automations beyond the form view edit and discard behavior described above.