diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-08-12 16:27:00 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-08-12 16:27:00 +0000 |
| commit | 3620cb68a0190031d3e1a963d8554834ab7f192b (patch) | |
| tree | f566af79a5cd19f970763090a8bc5e9c4ec0fce2 /addons/web/static/src/xml | |
| parent | 7cb3972b10d7b7591cc389d1d6d9711e5d9864b4 (diff) | |
[FIX] mail, portal, account: clean up portal attachment
Follow up of 61de1c263a7a40a36f2b58b8a107c350de6b6c7f
- Remove the dangerous **kw from the route in favor of specifying useful args.
- Use the existing method to link attachments to message instead of duplicating
the logic in an incomplete manner.
- Fix an issue where the actual email would not be sent if the message was empty
but an attachment was defined.
- Ensure the send attempt is done immediately instead of after the cr commit.
The goal is to show potential error messages correctly to the user with the
crash manager instead of a generic error page.
This also increases the send timeout and prevents the error in the first
place in most situations.
closes odoo/odoo#35263
Signed-off-by: Christophe Simonis <chs@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
0 files changed, 0 insertions, 0 deletions
