Missing dependency between server_action_mass_edit and server_action_mass_edit_onchange
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 65/100
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
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:
-
Install only server_action_mass_edit.
-
Create a mass editing rule for product.template including the field categ_id.
-
Go to Products, select records, and trigger the mass editing rule.
-
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
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from OCA/server-tools
-
dataclasses and python > 3.7Possibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
OCA/server-tools#3859 ·
Maintainers usually reply within 1 day
-
When tracking Json fields an error pops in v19Possibly taken @xecanto claimed this 22 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OCA/server-tools#3796 ·
Maintainers usually reply within 1 day
-
[18.0] base_exception: swallow_base_exception_error never runs the decorated testPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
OCA/server-tools#3784 · 1 comment ·
Maintainers usually reply within 1 day
-
[17.0] auto_backup: Cron: Database backup failed, UnicodeDecodeError: utf-8 codec can't decode byte 0x8b in position 690: invalid start bytePossibly taken @xecanto claimed this 33 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
OCA/server-tools#3768 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 72/100
OCA/server-tools#3139 · 1 comment ·
Maintainers usually reply within 1 day
All issues in OCA/server-tools
Similar issues
-
plot_graph crashes when a mesh node has no m2m edgePossibly taken @tygvi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
mllam/neural-lam#883 · 1 comment ·
Maintainers usually reply within 2 days
-
enhancement possible-duplicate
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/PictoPy#1715 · 2 comments ·
Maintainers usually reply within 6 days
-
SQLite connector omits generated columns from the catalog, and drops relationships sourced on themOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NVIDIA/auto-ontology#511 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ethereum/execution-specs#3996 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cpp-best-practices/project_validator#267 ·
Maintainers usually reply within 1 day