Monday, June 21, 2021
4 changes · master
Enhancements to existing features
Email templates can now use Odoo's QWeb view system for their message bodies instead of relying only on embedded Jinja HTML. This makes template design easier to extend, translate, test, and maintain, helping businesses create more consistent automated emails.
Website editors can now apply a selection of decorative shapes around images, making pages and email content more visually dynamic. The update also adds internal tooling to help prepare new shape designs more efficiently, supporting faster future design additions.
Original PR description
With this improvement, user can now choose between a set of shapes to clip around an image. This allows for more dynamic representation of images. This pull request also contains a tool that allows for a faster conversion of SVGs coming from Illustrator into usable shapes inside this feature.
Scheduled social media posts are now published much closer to the exact time selected by the user. Push notifications sent immediately are also delivered right away, improving time-sensitive communication such as event reminders or ticket sale announcements.
Original PR description
This commit implements 2 main changes related to the usage of CRON triggers: 1. When scheduling a social.post, we create a CRON trigger so that the post is published on the social media as close to…
This commit implements 2 main changes related to the usage of CRON triggers: 1. When scheduling a social.post, we create a CRON trigger so that the post is published on the social media as close to the selected date as possible. This is important for example when you schedule a post on the 05/05/2021 at exactly 9 AM, where you advertise that online ticketing for your online event is now open for sale. You want this post to be published as close as possible to 9 AM, and not whenever the CRON job decides to run after that time. 2. When posting push notifications "immediately", they are now sent immediately. Push notifications implementation is a bit special because we force the send method to pass through the CRON job. As opposed to other social media where the API calls are made immediately when you press on the "Post" button. This is done to avoid having the user wait for a long period of time as push notifications can quickly generate numerous HTTP calls (one for each visitor you are trying to reach). Now, with the usage of CRON trigger, we can actually send the push notifications very close to when you press the "Post" button, by creating a trigger "at=now()". This also allows us to remove the overrides/workarounds done in "website_event_social" that were used to send the track reminders "on time" with manual buttons such as "Send Push Reminders" on the event and the "action_post_immediate" method on the social.post that messed with the context. Task-2336219 UPG PR odoo/upgrade#2417
Resolved issues and error corrections
This fix ensures that legacy client actions correctly update the browser URL with the right context and parameters. It helps users land on and share the correct page state, especially in Discuss, reducing navigation confusion.
Original PR description
Before this commit, the push state from client actions to the URL did not work properly: 1. the action.params key was ignored 2. some "reserved" keys (active_id) were not handled properly 3. within a legacy client action, the call to parent.do_push_state did not work After this commit, all of those work properly letting discuss in particular have the right URL It is worth noting that in the full wowl stack, that the right way to push something in the URL from a component is always to call the router service's pushState when the component is mounted