Sunday, April 24, 2022
1 change · master
Miscellaneous changes
When saving a description the one edited doesn't appear but the one edited previously instead. This fixes this problem. Technical note: the default description for a new event was the rendering of a template. That template was shared between all the events and overridden each time. The solution was to strip the identity of the template while rendering it making it a constant and preventing it from being shared between events. This could be done by setting rendering_bundle to True in the
Original PR description
When saving a description the one edited doesn't appear but the one edited previously instead. This fixes this problem. Technical note: the default description for a new event was the rendering of a template. That template was shared between all the events and overridden each time. The solution was to strip the identity of the template while rendering it making it a constant and preventing it from being shared between events. This could be done by setting rendering_bundle to True in the rendering context (unfortunately, t-ignore is not a legitimate attributes of template tag). Task-2781443 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#88192