What should be done to get the next free value of a defined sequence inside an Odoo python model's method?
Is there any example somewhere?
I have seen next_by_id and next_by_code methods on ir_sequence.py but I am not sure on how to invoke them (not even sure that they are the right methods to invoke).
I assume that to get the right sequence I have to use: .
seq_id = self.pool.get('ir.sequence').search(cr, uid, ['TESTSEQ'])
where TESTSEQ is the name of my defined sequence.