'Create a sequence, in implementation == standard a fast gaps-allowed PostgreSQL sequence is used.'

@api.model
def create(self, values):

    seq = super(IrSequenceDateRange, self).create(values)
    main_seq = seq.sequence_id
    if (main_seq.implementation == 'standard'):
        _create_sequence(self._cr, ('ir_sequence_%03d_%03d' % (main_seq.id, seq.id)), main_seq.number_increment, values.get('number_next_actual', 1))
    return seq
