Files
odoo_source/addons
Thibault Delavallée 3dac7dd5c0 [IMP] mail: support rendering on void or falsy record sets
In this commit we support calling rendering methods on void or falsy record
sets. Currently some rendering methods prevent from having 'None', some do
nothing specific. As Qweb or inline template support rendering on void records
we can safely support rendering on [], (), [False], [None]. Returned result
will either be void, either contain the rendered on void record for the
False or None key.

In this commit we also add a protection against trying to render a non
existing field. Instead of raising a KeyError, a ValueError is raised with
a clearer error message.

Task-2710804 (Mail: Clean MailThread Posting API)

Part-of: odoo/odoo#106072
2022-11-21 19:55:12 +01:00
..
2022-10-11 13:15:12 +02:00
2022-11-15 18:25:08 +01:00
2022-10-19 16:09:55 +02:00
2022-11-04 09:52:54 +01:00
2022-11-08 07:46:40 +01:00
2022-09-24 15:00:56 +02:00
2022-10-06 14:56:52 +02:00