From e616d4d4e22431191b2b6bda2bec9eefe58043e3 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 29 Jan 2009 18:09:55 +0100 Subject: [PATCH] [FIX] sequence: no more "for update" lp bug: https://launchpad.net/bugs/314449 fixed bzr revid: christophe@tinyerp.com-20090129170955-5lan3f8m0pogqtvx --- addons/account/sequence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/sequence.py b/addons/account/sequence.py index 0f01e43cf57..c3ac27880e3 100644 --- a/addons/account/sequence.py +++ b/addons/account/sequence.py @@ -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: