[FIX] sale: did some changes
bzr revid: cha@tinyerp.com-20130201065948-oae060lc7f25z1b3
This commit is contained in:
parent
3589c008ad
commit
27bd0dbfef
|
@ -418,7 +418,7 @@ class sale_order(osv.osv):
|
|||
This function prints the sales order and mark it as sent, so that we can see more easily the next step of the workflow
|
||||
'''
|
||||
assert len(ids) == 1, 'This option should only be used for a single id at a time'
|
||||
self.signal_quotation_sent(cr, uid, [ids[0]])
|
||||
self.signal_quotation_sent(cr, uid, ids)
|
||||
datas = {
|
||||
'model': 'sale.order',
|
||||
'ids': ids,
|
||||
|
@ -986,7 +986,7 @@ class mail_compose_message(osv.Model):
|
|||
context = context or {}
|
||||
if context.get('default_model') == 'sale.order' and context.get('default_res_id') and context.get('mark_so_as_sent'):
|
||||
context = dict(context, mail_post_autofollow=True)
|
||||
self.pool.get('sale.order').signal_quotation_sent(cr, uid, context['default_res_id'])
|
||||
self.pool.get('sale.order').signal_quotation_sent(cr, uid, [context['default_res_id']])
|
||||
return super(mail_compose_message, self).send_mail(cr, uid, ids, context=context)
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
Loading…
Reference in New Issue