Missing dependency between server_action_mass_edit and server_action_mass_edit_onchange

Open Beginner friendly
#3,368 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
backend

Research direction

The fix point is the depends list in the manifest of server_action_mass_edit, which is missing server_action_mass_edit_onchange. Check that module's manifest and onchange code to confirm the dependency is real, and reproduce the KeyError 'selection__categ_id' by installing only server_action_mass_edit and opening a mass-edit wizard on categ_id. Done when the wizard opens with only the first module installed, or when the README documents that both must be installed together. Confirm the approach with maintainers first, since the issue offers both options.

Written by the indexing model from the issue text.

Description

bug

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.

Dominant language
Python
Stars
960
Forks
1.7k
Avg merge
5d 23h
Merged PRs (30d)
15

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OCA/server-tools

All issues in OCA/server-tools

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.