OdooWiki OCA HUB

Web hide field with keys

web_hide_field_with_key folder_open OCA/web open_in_new
Misc License: AGPL-3

This allows to hide field by pressing the "p" key on the keyboard

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Lets users hide or show selected fields on any Odoo screen by pressing the "p" key, without changing any data or settings.

This module adds a small keyboard shortcut to the Odoo web interface. When a page contains elements marked with the class web-hide-field, pressing the "p" key toggles their visibility: fields that are visible become hidden, and fields that were hidden become visible again.

  • The shortcut works on any screen where such marked elements exist, including list views where table cells and their column headers are hidden together.
  • The original display style of each element is remembered, so when you press "p" again the field returns exactly as it was before.
  • The module runs continuously in the background and also applies the hiding to newly loaded elements, so fields that appear after scrolling or refreshing a view are handled too.
  • It does not add menus, buttons, reports, server-side rules, or automatic checks; it only changes what is shown on screen for the current user.
  • No data is modified, saved, or sent to the server, and the effect is purely visual and temporary.

The module depends on base and product, but the code itself does not define any new models or business logic. It only loads a JavaScript asset into the common web assets.

Depends on

baseproduct

Text generated by AI (DeepSeek) from reading the Odoo 16.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 16.0

Add the class web-hide-field to a field:

<field name="name" class="web-hide-field">

Then press the "p" key and the field will disappear

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.