Comment 6 for bug 908189

Revision history for this message
Ferdinand (office-chricar) wrote :

Well - according to my experience this does not work reliably

Having 2 or more sequences with the same code - next_by code will take a random sequence - which can't be a desired behavior
this
        ids = self.search(cr, uid, ['&',('code','=', sequence_code),('company_id','in',company_ids)])
        return self._next(cr, uid, ids, context)

        return self.next_by_code(cr, uid, sequence_code_or_id, context)
will return multiple sequences which match the search which IMHO is not handled

I just tried it with code of today.