summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-11-25 11:18:25 +0100
committerDenis Ledoux <dle@odoo.com>2015-11-25 11:22:44 +0100
commitdade7e3c1790bf54187618b0a1c4befab935dfd5 (patch)
tree876e978f53b6c151e8a4fc361d044135a044ef61 /addons
parent12d5b4168fe3211ccd0b9f7e8783b1e082fa8813 (diff)
[FIX] website_quote: confirmation email at payment.
`website_quote` overrides `payment.transaction`.`form_feedback` the same way `website_sale` does, in case `website_quote` is installed without `website_sale`. Therefore, the revisions - 4adb4b8 - 809e1a6 must be applied there as well. opw-657432
Diffstat (limited to 'addons')
-rw-r--r--addons/website_quote/models/payment.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/website_quote/models/payment.py b/addons/website_quote/models/payment.py
index 991decaa3cb..e72b609cbd3 100644
--- a/addons/website_quote/models/payment.py
+++ b/addons/website_quote/models/payment.py
@@ -23,6 +23,8 @@ class PaymentTransaction(orm.Model):
if hasattr(self, tx_find_method_name):
tx = getattr(self, tx_find_method_name)(cr, uid, data, context=context)
if tx and tx.state == 'done' and tx.acquirer_id.auto_confirm == 'at_pay_confirm' and tx.sale_order_id and tx.sale_order_id.state in ['draft', 'sent']:
- self.pool['sale.order'].action_button_confirm(cr, SUPERUSER_ID, [tx.sale_order_id.id], context=context)
+ self.pool['sale.order'].action_button_confirm(cr, SUPERUSER_ID, [tx.sale_order_id.id], context=dict(context, send_email=True))
+ elif tx and tx.state not in ['cancel'] and tx.sale_order_id and tx.sale_order_id.state in ['draft']:
+ self.pool['sale.order'].force_quotation_send(cr, SUPERUSER_ID, [tx.sale_order_id.id], context=context)
return res