diff --git a/addons/website_quote/models/order.py b/addons/website_quote/models/order.py index 05a58e375ae7d8a8e5e34df2671f0f7f16a41e78..0d118fb272e944605d09ccf2c990fde58c4b689f 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