Monday, January 31, 2022
2 changes · master
Resolved issues and error corrections
Marketing automation participant records must now always point to a real related document. This prevents incomplete or invalid participant data from being saved, improving data reliability for campaigns and follow-up processes.
Original PR description
Marketing participants records are linked to documentss through a model and an integer res_id field. The latter one is required but is implemented using an integer field, meaning writing 0 is actually a valid value for 'required'. In this commit we add a constraint to ensure we never update participants with a void res_id value. See community PR that updated mail activities and mailing traces for the same reason. Task-2694133
A small issue in the appointment sharing wizard was corrected so the right staff users are selected and processed. This helps ensure appointment sharing behaves reliably when staff members are involved.
Original PR description
A 's' is missing in staff_user_ids definition, the compute method is _compute_staff_user_ids and not _compute_staff_user_id. This has been hiding an issue on the format of ids in the compute method that is corrected too. Task-2748075 X-original-commit: eb9ff5b4de8eb342a53e3090de8b4410ef6f11b9 Part of odoo/enterprise#17934