diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-03-01 17:26:43 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-03-01 17:26:43 +0100 |
| commit | b04c8eae6bf8a0da4df734ac8db36cb04aec9802 (patch) | |
| tree | 5f75f4c32e6f2a770cb0de62271d521880dfacca /addons/sale/wizard/mail_compose_message.py | |
| parent | 9a1d71ce95fd3c0476aee358b37e29fd7cd8edc7 (diff) | |
| parent | 153ae5e8b834345673a1fa23e0724e4c67a66df2 (diff) | |
[MERGE] forward port branch saas-14 up to 153ae5e8b83
Diffstat (limited to 'addons/sale/wizard/mail_compose_message.py')
| -rw-r--r-- | addons/sale/wizard/mail_compose_message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/sale/wizard/mail_compose_message.py b/addons/sale/wizard/mail_compose_message.py index 73d81116d50..9ec46b48308 100644 --- a/addons/sale/wizard/mail_compose_message.py +++ b/addons/sale/wizard/mail_compose_message.py @@ -12,6 +12,6 @@ class MailComposeMessage(models.TransientModel): if self._context.get('default_model') == 'sale.order' and self._context.get('default_res_id') and self._context.get('mark_so_as_sent'): order = self.env['sale.order'].browse([self._context['default_res_id']]) if order.state == 'draft': - order.state = 'sent' + order.with_context(tracking_disable=True).state = 'sent' self = self.with_context(mail_post_autofollow=True) return super(MailComposeMessage, self).send_mail(auto_commit=auto_commit) |
