Skip to content
Snippets Groups Projects
Commit 36e681cb authored by Damien Bouvy's avatar Damien Bouvy
Browse files

[FIX] website_quote: sales order do not use workflow any longer

+ old message_post call with wrong kwargs.
parent b87b6cc6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment