Activity creation without model_id
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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:
- Create an activity from scratch
- Save the activity
- Dominant language
- Python
- Stars
- 36
- Forks
- 180
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 14
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/mail
-
[18.0] mail_drop_target: uploading a file to a Discuss channel fails (_get_as_sudo_from_request_or_raise no longer exists)Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
Similar issues
-
add entry to blockOpen
Difficulty 1/5 Under an hour Newbie friendliness 65/100
StevenBlack/hosts#3299 ·
-
`garak --report` overwrites the input report when its name has no ".report"Possibly taken @0z5a claimed this today. Openneeds-triage
Difficulty 2/5 Half a day Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
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
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
future-agi/future-agi#4092 · 1 comment ·
Maintainers usually reply within 1 day
-
transcript analytics: a text whose only protected spans the prose pass redacts is withheld wholeOpen
Difficulty 1/5 Under an hour Newbie friendliness 82/100
WingedGuardian/GENesis-AGI#4641 ·
Maintainers usually reply within 1 day