From 36e681cbe545d0dc5d9489471861e2f361346e26 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Tue, 16 Feb 2016 09:34:45 +0100 Subject: [PATCH] [FIX] website_quote: sales order do not use workflow any longer + old message_post call with wrong kwargs. --- addons/website_quote/models/order.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website_quote/models/order.py b/addons/website_quote/models/order.py index 05a58e375ae..0d118fb272e 100644 --- a/addons/website_quote/models/order.py +++ b/addons/website_quote/models/order.py @@ -294,9 +294,9 @@ class sale_order(osv.osv): # create draft invoice if transaction is ok if tx and tx.state == 'done': if order.state in ['draft', 'sent']: - self.signal_workflow(cr, SUPERUSER_ID, [order.id], 'manual_invoice', context=context) + self.action_confirm(cr, SUPERUSER_ID, order.id, context=context) message = _('Order payed by %s. Transaction: %s. Amount: %s.') % (tx.partner_id.name, tx.acquirer_reference, tx.amount) - self.message_post(cr, uid, order_id, body=message, type='comment', subtype='mt_comment', context=context) + self.message_post(cr, uid, order_id, body=message, context=context) return True return False