Tuesday, July 27, 2021
2 changes · master
Code cleanup and technical improvements
The CRM lead conversion and opportunity merge dialogs were simplified internally so they can handle customer and lead information more consistently. This makes the related sales and CRM workflows more reliable and easier to extend, with little direct disruption for users.
Original PR description
rework of : #29464
Email and campaign tracking records have been consolidated into one shared notification model. This simplifies how Odoo manages delivery status, bounces, cancellations, and mailing statistics, improving maintainability while keeping campaign reporting aligned.
Original PR description
PURPOSE Merge the model 'mailing.trace' of mass_mailing module with 'mail.notification' of mail module. SPECS [REF] mail: prepare mail notification for merge mailing trace Prepare the mail…
PURPOSE
Merge the model 'mailing.trace' of mass_mailing module with 'mail.notification'
of mail module.
SPECS
[REF] mail: prepare mail notification for merge mailing trace
Prepare the mail notification model to be merge more
easily with the mailing.trace for the mass mailing
application :
- Rename class of 'Notification' into 'MailNotification' (consistency)
- Remove sql contraint to allow notification without partner
- Remove required contraint on the mail_message_id and res_partner_id (more flexible)
- Order fields more logically
- Change "string" value of some fields to be more generic
- Change the rec_name because partner is now not mandatory
- Change the selection of notification_status (bounce -> bounced and ready -> outgoing)
[REF] mail: rename SQL table of mail notification
The "mail_message_res_partner_needaction_rel" SQL table name for the
mail notification was legacy, change it to be the default one for
the model ("mail_notification").
[REF] mass_mailing(_sms): prepare mailing trace to merge with notification
- Change a selection value of 'trace_type' field: 'mail' -> 'email'.
- Change a selection value of 'state' field: 'ignored' -> 'canceled'
- Then, rename 'ignored' field into 'canceled'.
- Rename 'mail_mail_id' field into 'mail_id' to be consistant with
mail.notification (also with mail_mail_id_int).
- Rename 'sms_sms_id' field into 'sms_id' for the same reason
(also for sms_sms_id_int).
- Remove not used windows action : 'action_view_mail_mail_statistics_mailing'
[REF] mass_mailing(_sms): merge mailing trace with notification model
Merge the 'mailing.trace' (mass_mailing) into
the 'mail.notification' model (mail). Now the a mailing trace
is a mail notification with a mass mailing set.
Update the performance test of mass mailing to take in account
few additionnal requests.
LINKS
odoo/enterprise#6939
odoo/upgrade#828
task-2083854