diff options
| author | Moens Alexandre <mao@odoo.com> | 2019-01-24 15:49:45 +0000 |
|---|---|---|
| committer | Moens Alexandre <mao@odoo.com> | 2019-01-24 15:49:45 +0000 |
| commit | aecfd1a3077a1f0abf8d95823cb2457f9c6d7ac1 (patch) | |
| tree | 53e4aa8af1449f7a54a62fcf1c829fefcc60feb0 /addons/web/static/src/xml/base.xml | |
| parent | 93614a35eb08d05a4ac0eb11207d34245eb70c72 (diff) | |
[FIX]mail:reply to message with no author
When a user/partner is deleted, their messages lose their author.
Replying to those may result in a failure to fetch the mails from the
incomming mail server.
without this commit, partner_ids == [(4, False)] and this value "goes
down" all the way to the orm method "write" of the Many2many field.
resulting in a SQL query like :
INSERT INTO mail_message_res_partner_rel (mail_message_id, res_partner_id)
(SELECT a, b FROM unnest(ARRAY[149855]) AS a, unnest(ARRAY[false]) AS b)
EXCEPT (SELECT mail_message_id, res_partner_id FROM mail_message_res_partner_rel WHERE mail_message_id IN (149855))
which fails with the ProgrammingError : EXCEPT types boolean and integer
cannot be matched
opw-1921805
closes odoo/odoo#30528
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
0 files changed, 0 insertions, 0 deletions
