Daily updates from Odoo
Thursday, June 20, 2019
2 changes · master
Enhancements to existing features
Odoo now prepares JSON data in a way that is safe to place inside browser scripts, reducing the chance of pages breaking when data contains special characters. This also standardizes how templates pass data to the browser, making point of sale and web client pages more reliable.
Original PR description
Make JSON serialisation workable for script contexts.
* provide a pseudo-module whose `dumps` function is script-safe (using raw html injection)
* make it the default `json.dumps` in qweb templates
* update callsites to properly dump json:
- dump in template, not in the python code
- dump the entire structure at once, not bits and bobs inside a JSON
literal
Task 1999158
- [x] pseudo-module should be called script-safe not html-safe.When a helpdesk team's message subtypes are changed, the same settings are now applied to its related tickets. This keeps ticket communication behavior aligned with the team configuration and reduces manual follow-up for support teams.
Original PR description
…icket before this commit: while changing the subtypes on the helpdesk team, it does not affect on related tickets for subtypes which don't have parent_id. after this commit: when a user changes any subtypes on the helpdesk team then same will be applied on ticket also for subtypes with parent_id, internal or default. task-1974055 Task: https://www.odoo.com/web#id=1974055&action=327&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.0178a74905bafcc0f74a81894e0059a9