Saturday, January 13, 2024
1 change · master
Code cleanup and technical improvements
This update renames and reorganizes the mail push notification components to make the code easier to maintain. It also fixes several push notification issues, including duplicate sends, incorrect images, missing recipient details, and delayed notifications not respecting their schedule.
Original PR description
RATIONALE
Cleanup of enterprise code moved at odoo/odoo@0903ef7bb2117623cf6cbbd2375f56ca91babe6a
SPECIFICATIONS
Improve naming of push models: use 'mail.push' namespace
* 'mail.notification.web.push' -> 'mail.push' is sufficient and understandable
while being shorter;
* 'mail.partner.device' -> 'mail.push.device' to use the mail.push namespace;
Update 'user_device' field name to 'mail_push_device_id' (both for new model
name and _id indicating it is a m2o).
Cleanup tests: move into 'test_mail' as it is now part of standard mail
code. 'test_mail_full' is used for integrations with advanced mail modules
like sms or mass mailing. Split into sub-tests to clarify tested features,
some tests are cleaned (notably using more explicit sub-tests).
Provide fixes spotted when improving / rewriting tests.
Task-3669738