Skip to content

Commit

Permalink
[FIX] sale: don't send duplicate email
Browse files Browse the repository at this point in the history
closes #30455
  • Loading branch information
fmdl authored and nim-odoo committed Jan 23, 2019
1 parent a409627 commit d3affc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/sale/models/sale.py
Expand Up @@ -463,7 +463,7 @@ def action_confirm(self):
order.state = 'sale'
order.confirmation_date = fields.Datetime.now()
if self.env.context.get('send_email'):
self.force_quotation_send()
order.force_quotation_send()
order.order_line._action_procurement_create()
if self.env['ir.values'].get_default('sale.config.settings', 'auto_done_setting'):
self.action_done()
Expand Down

0 comments on commit d3affc5

Please sign in to comment.