Saturday, January 13, 2024
2 changes · 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-3669738The Point of Sale online payment module's internal files were reorganized to match the project's standard structure. This does not introduce new customer-facing behavior, but it makes the module easier to maintain and evolve reliably.
Original PR description
In this commit we rearange the static files of the `pos_online_payment` module such that they respect the pattern established in e216528 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr