Missing dependency between server_action_mass_edit and server_action_mass_edit_onchange

オープン 初心者向け
#3,368 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
python
領域
backend

調査の方向性

修正箇所は server_action_mass_edit のマニフェストにある depends リストで、server_action_mass_edit_onchange が欠けています。そのモジュールのマニフェストとonchangeのコードを確認して依存関係が実際に存在することを確かめ、server_action_mass_edit だけをインストールして categ_id を対象に一括編集ウィザードを開き、KeyError 'selection__categ_id' を再現してください。最初のモジュールだけがインストールされた状態でウィザードが開けば完了です。または、README に両方を一緒にインストールする必要があると明記されていれば完了です。issue は両方の選択肢を挙げているため、進める前にメンテナーにアプローチを確認してください。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
960
フォーク
1.7k
平均マージ
5日 23時間
マージ済み PR(30日)
15

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OCA/server-tools のほかの issue

OCA/server-tools の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。