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 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 ?
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.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký