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
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 code),( 'company_ id','in' ,company_ ids)])
this
ids = self.search(cr, uid, ['&',('code','=', sequence_
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.