Activity creation without model_id

Aperta
#340 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@parabol123654 ci sta già lavorando.

Dal 9/11/2026.

  • #346 di @parabol123654 — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

The failure is in action_notify_team in mail_activity.py, around line 207, where the check activity.res_id not in classified[activity.res_model]["record_ids"] runs for activities with no model. Reproduce by creating a mail activity without a res_model or res_id and saving it. Done means that save succeeds without error. Pull request #346 already targets this, so review it before starting new work.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

Module

mail_activity_team

Describe the bug

When we create an activity from scratch without a model (purchase or sale ordre, project, ...), an error occurs because of a clause if : "if activity.res_id not in classified[activity.res_model]["record_ids"]:" (line 207 in action_notify_team, in mail_activity.py.

Errorwhileactivitycreationwithoutmodel_id-ee2f700c-245f-4205-8d91-b5.pdf

Errorwhileactivitycreationwithoutmodel_id-ee2f700c-245f-4205-8d91-b5.pdf

To Reproduce

Affected versions: V19 (not tested on other versions)

Steps to reproduce the behavior:

  1. Create an activity from scratch
  2. Save the activity
Lingua principale
Python
Stelle
36
Fork
180
Merge medio
4g 2h
PR unite (30g)
14

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di OCA/mail

Tutte le issue di OCA/mail

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.