OdooWiki OCA HUB

Server Action Mass Edit Onchange

server_action_mass_edit_onchange folder_open OCA/server-ux open_in_new
Uncategorised License: AGPL-3

This module is an extension of module Mass Editing to support playing onchange before writing.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Extends Mass Editing server actions so each field line can trigger the normal onchange rules before values are written. Users tick 'Play onchanges' per field, and Odoo recalculates dependent fields automatically during the mass update.

This module adds an option to Mass Editing server actions so that, when a value is written in bulk, Odoo first runs the same automatic field recalculation (onchange) that would happen if a user typed the value manually in the form.

Where it appears: - On the Server Action form, in the Mass Editing lines, each line now has an 'apply_onchanges' checkbox with the help text 'Play field onchanges before writing value'. - The Mass Editing wizard that pops up when the action runs carries a read-only 'play_onchanges' value built from those checkboxes.

Business behaviour: - When the mass edit is executed, fields marked to play onchanges are processed record by record: Odoo recalculates dependent fields for each record, then writes the remaining values normally. - Fields not marked are written directly, as before. - If no line is marked, the standard mass edit behaviour is used.

It touches the server action configuration (ir.actions.server), its mass edit lines (ir.actions.server.mass.edit.line) and the mass editing wizard (mass.editing.wizard). It depends on the Mass Editing and onchange helper modules.

Models and fields (3)
  • ir.actions.server · extends an existing modelmass_edit_play_onchanges (Play onchanges from lines)
  • mass.editing.wizard · extends an existing modelplay_onchanges
  • ir.actions.server.mass.edit.line · extends an existing modelapply_onchanges

Text generated by AI (DeepSeek) from reading the Odoo 18.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.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/server-ux.

terminal Installation and usage

No verified information

Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.

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.