server-tools icon indicating copy to clipboard operation
server-tools copied to clipboard

Missing dependency between server_action_mass_edit and server_action_mass_edit_onchange

Open marionumza opened this issue 3 months ago • 0 comments

Module

server_action_mass_edit

Describe the bug

The module server_action_mass_edit does not declare server_action_mass_edit_onchange as a dependency in its manifest. As a result, when users install only server_action_mass_edit and create a mass editing rule, the wizard fails with a KeyError (e.g., KeyError: 'selection__categ_id') because onchange logic is missing.

To Reproduce

Affected versions: 17.0, 18.0 (tested on 17.0 with Odoo.sh and Doodba-based environment)

Steps to reproduce the behavior:

  1. Install only server_action_mass_edit.

  2. Create a mass editing rule for product.template including the field categ_id.

  3. Go to Products, select records, and trigger the mass editing rule.

  4. The wizard crashes with an RPC error and traceback containing KeyError: 'selection__categ_id'.

Expected behavior The wizard should open normally, allowing the user to mass-edit relational fields like categ_id, without errors.

Additional context Installing server_action_mass_edit_onchange resolves the problem.

Suggestion: add server_action_mass_edit_onchange as a dependency in the manifest of server_action_mass_edit, or at least document clearly that both modules must be installed together.

marionumza avatar Sep 10 '25 11:09 marionumza