Odoo 19 · 20Extra ToolsFree

Field Lock After Approval

Lock fields by any condition, on any model, enforced in write() - not just a view attribute

Request a live demo · Odoo.sh or On-Premise only, not Odoo Online (SaaS).

Free

App Store price, per Odoo version

19 · 20

Odoo versions, each sold on its own page

Odoo.sh

or On-Premise; not Odoo Online (SaaS)

1.0.12

version of mh_field_lock

Native Odoo locks fields after approval one model at a time, by hand: sale.order, purchase.order, and friends each hard-code their own "readonly once state is X" view attributes, one field at a time. Those are view-layer only - bypassable through any API call - and there's no shared, configurable mechanism, so any custom or less-common model gets nothing at all. This app adds one config screen: pick a model, build a condition with Odoo's own domain builder (any field, any operator, combined however you like), pick which fields to lock once that condition matches, and optionally which groups can still edit anyway. The check runs in write() itself, so it can't be bypassed the way a view attribute can.

How it works

Enforced in write(), not just the form

A view readonly attribute only stops the form. This runs on every write() call to the model - through the UI, an import, or an external API call alike. Code running as the superuser is exempt on purpose: Odoo writes that way during installs, upgrades and its own internal flows, and a lock that refused those would break the database rather than protect it. Automated actions run that way too, so treat an automation as inside the fence, not outside it.

Any field, any operator, no code

The condition uses Odoo's own domain builder - the same one behind every filter and automation rule. Combine any fields on the model, not just a single status field.

Screenshots

Requirements

  • Odoo 19.0 or 20.0. The App Store sells each version separately, so buy the one that matches your database.
  • Odoo.sh or On-Premise only. Third-party apps cannot be installed on Odoo Online (SaaS) databases. Check your hosting before buying.
  • Module mh_field_lock, version 19.0.1.0.12, licensed OPL-1.

Field Lock After Approval