def _create_sequence(cr, seq_name, number_increment, number_next):
 if (number_increment == 0):
  raise UserError(_('Step must not be zero.'))
 sql = ('CREATE SEQUENCE %s INCREMENT BY %%s START WITH %%s' % seq_name)
 cr.execute(sql, (number_increment, number_next))

def _create_sequence ( cr , seq_name , number_increment , number_next ) : if ( number_increment == 0 ) : raise UserError ( _ ( 'Step must not be zero.' ) ) sql = ( 'CREATE SEQUENCE %s INCREMENT BY %%s START WITH %%s' % seq_name ) cr . execute ( sql , ( number_increment , number_next ) )
create a postresql sequence .