[FIX] sequence: no more "for update"

lp bug: https://launchpad.net/bugs/314449 fixed

bzr revid: christophe@tinyerp.com-20090129170955-5lan3f8m0pogqtvx
This commit is contained in:
Christophe Simonis 2009-01-29 18:09:55 +01:00
parent b4e76b9df5
commit e616d4d4e2
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ class ir_sequence(osv.osv):
'fiscal_ids' : fields.one2many('account.sequence.fiscalyear', 'sequence_main_id', 'Sequences')
}
def get_id(self, cr, uid, sequence_id, test='id=%s', context={}):
cr.execute('select id,number_next,number_increment,prefix,suffix,padding from ir_sequence where '+test+' and active=True FOR UPDATE', (sequence_id,))
cr.execute('select id from ir_sequence where '+test+' and active=%s', (sequence_id, True,))
res = cr.dictfetchone()
if res:
for line in self.browse(cr, uid, res['id'], context=context).fiscal_ids: