-
- Downloads
[FIX] mail: no crash when uploading attachment on draft record
Before this commit, when uploading an attachment on a draft record,
there was the following crash.
This happens because the file uploader in use was the one from when
the record was in draft. The file uploader is changed when the
record is no longer in draft, so the new file uploader should be used
instead.
This commit fixes the issue by delaying slightly saving of record in
chatter model, so that we are sure the chatter record is no longer
temporary (= record not longer in draft), which in consequence create
a new file uploader that actually works.
opw-3280676
closes odoo/odoo#119515
Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
Please register or sign in to comment