(self, values)
return seq
Create a sequence, in implementation == standard a fast gaps-allowed PostgreSQL sequence is used.
Create a sequence, in implementation == standard a fast gaps-allowed PostgreSQL sequence is used.
Create a sequence in implementation == standard a fast gaps - allowed PostgreSQL sequence is used .
def create(self, values):
        """ Create a sequence, in implementation == standard a fast gaps-allowed PostgreSQL sequence is used.
        """
        seq = super(IrSequence, self).create(values)
        if values.get('implementation', 'standard') == 'standard':
            _create_sequence(self._cr, "ir_sequence_%03d" % seq.id, values.get('number_increment', 1), values.get('number_next', 1))
        return seq
def create ( self , values ) : seq = super ( IrSequence , self ) . create ( values ) if values . get ( 'implementation' , 'standard' ) == 'standard' : _create_sequence ( self . _cr , "ir_sequence_%03d" % seq . id , values . get ( 'number_increment' , 1 ) , values . get ( 'number_next' , 1 ) ) return seq