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
oh, there seems to be a small bug in my patch. In purchase.py line 'company_ id'] = self.browse(cr, uid, ids[0], context).company_id 'company_ id'] = self.browse(cr, uid, ids, context) [0].company_ id
context[
seems to raise list index out of range exception. Better line might be like
context[
But I'm not sure if that line is needed anyway.