Odoo Help


This community 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.


openerp 7 ir.sequence increment by 2 bug.? [Closed]

on 3/26/13, 4:22 AM 1,844 views

The Question has been closed

on 04/18/2013 07:32:47

in my case +1 sequence number shows when i open the form.but when i save the record, its increment again.that means now my sequnce numbers like this EMP0010,EMP0012,EMP0013..is it issue with openerp or something missing with my code.?

'register_no': fields.char('Register No', size=32, help='Register No', readonly=True),  # employer wise ,estate wise
        'employer_no': fields.char('Employer No', type='char', readonly=True),

_defaults = {
 'register_no': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'bpl.worker'),
 'employer_no': lambda obj, cr, uid, context: obj.pool.get('ir.sequence').get(cr, uid, 'bpl.employer'),

my whole code is here

my github code

this is the same case for me too

Omal Bastin
on 3/26/13, 7:13 AM

Did you fix the problem?

Versão Integral, Anabela Damas
on 3/28/13, 9:00 AM

yes.just use simple python code( line 38-144) refer bpl.py class https://github.com/priyankahdp/openerp

on 3/28/13, 10:28 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 3/26/13, 4:22 AM
Seen: 1844 times
Last updated: 3/16/15, 8:10 AM