Odoo Help


how to use sequences with the developer mode?

on 8/11/14, 1:41 AM 578 views

By 'activate develper mode' of openerp, I created a model, sequece and sequence code, set the Code of sequence code to model name, but it doesn't work.

x_name of model always show 'false'. How to let the x_name have the value set by the sequence ?

On 8/12/14, 2:07 AM

define a sever action with the type of Python Code, code as: 

object.write({'x_name':self.pool.get('ir.sequence').next_by_code(cr, uid, 'x_my_order', context=context)})

call the action in the workflow start node.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/11/14, 1:41 AM
Seen: 578 times
Last updated: 3/16/15, 8:10 AM