diff options
| author | yhu-odoo <yhu@odoo.com> | 2020-09-17 13:47:04 +0000 |
|---|---|---|
| committer | yhu-odoo <yhu@odoo.com> | 2020-10-02 09:31:09 +0000 |
| commit | 83f2cac4b8ba101d6a7736a8ff408a3fdb5422fe (patch) | |
| tree | 76262fc8bfd6fe8902fdca9f4b83b22fd335d37d /addons/mail/static/src | |
| parent | 170729ee58b199041d7545e7789ac9474e86f998 (diff) | |
[FIX] purchase: don't send preview email when PO not saved
When PO not saved, no mail can be send. Sending a reminder preview will
get traceback. In this commit, we check if the PO is saved before
sending the mail.
Also clean some useless code in the send_reminder_preview() and fix the
issue when no json object is return to the widget because of on mail
send.
Task 2339431
PR #57961
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
Diffstat (limited to 'addons/mail/static/src')
0 files changed, 0 insertions, 0 deletions
