Form View Edit, Save & Discard Control

Controlled Form Editing for Odoo 18

The Form View Edit, Save & Discard Control module restores a classic and controlled editing workflow in Odoo 18.

All form views open in readonly mode by default, allowing users to edit records only after explicitly clicking the Edit button.

Key Features

Readonly by Default
All form views open in readonly mode to prevent accidental edits.

Explicit Edit Button
Users must intentionally click the Edit button to modify records.

Discard Always Visible
The Discard button appears immediately after entering edit mode.

Save Appears Only on Changes
The Save button is displayed only when actual field changes occur.

Auto Return to Readonly
After Save or Discard, the form automatically switches back to readonly mode.

Works for All Models
No model-specific configuration required. Applies globally to all forms.

How It Works

Form View – Default Behavior
Before installing the module, forms open directly in edit mode, which may allow unintended changes.

After Installing the Module
Forms open in readonly mode with a clear Edit button.

Editing a Record
Clicking the Edit button enables edit mode and immediately shows the Discard button.

After Modifying Fields
Once field values are modified, the Save button appears allowing users to Save or Discard changes.

After Save or Discard, the form automatically returns to readonly mode.