Comment 1 for bug 796570

Revision history for this message
Eetu Salpaharju (ex4) wrote :

oh, there seems to be a small bug in my patch. In purchase.py line
context['company_id'] = self.browse(cr, uid, ids[0], context).company_id
seems to raise list index out of range exception. Better line might be like
context['company_id'] = self.browse(cr, uid, ids, context)[0].company_id

But I'm not sure if that line is needed anyway.