[FIX]sale: post message of mail_thread only accept 0, False, an ID or a list with one ID
bzr revid: dle@openerp.com-20140219170746-3yjvjyc2wwrb7rvd
This commit is contained in:
parent
e635ebe6c1
commit
8edb7c556b
|
@ -1010,8 +1010,8 @@ class account_invoice(osv.Model):
|
||||||
sale_order_obj = self.pool.get('sale.order')
|
sale_order_obj = self.pool.get('sale.order')
|
||||||
res = super(account_invoice, self).confirm_paid(cr, uid, ids, context=context)
|
res = super(account_invoice, self).confirm_paid(cr, uid, ids, context=context)
|
||||||
so_ids = sale_order_obj.search(cr, uid, [('invoice_ids', 'in', ids)], context=context)
|
so_ids = sale_order_obj.search(cr, uid, [('invoice_ids', 'in', ids)], context=context)
|
||||||
if so_ids:
|
for so_id in so_ids:
|
||||||
sale_order_obj.message_post(cr, uid, so_ids, body=_("Invoice paid"), context=context)
|
sale_order_obj.message_post(cr, uid, so_id, body=_("Invoice paid"), context=context)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def unlink(self, cr, uid, ids, context=None):
|
def unlink(self, cr, uid, ids, context=None):
|
||||||
|
|
Loading…
Reference in New Issue