summaryrefslogtreecommitdiff
path: root/addons/account/sequence.py
diff options
context:
space:
mode:
authorChristophe Simonis <christophe@tinyerp.com>2009-01-29 18:09:55 +0100
committerChristophe Simonis <christophe@tinyerp.com>2009-01-29 18:09:55 +0100
commite616d4d4e22431191b2b6bda2bec9eefe58043e3 (patch)
tree3b60f35621f5d1789a918bae222b499fcf0da364 /addons/account/sequence.py
parentb4e76b9df5e3ac6b2041b12dac68e5003c533d69 (diff)
[FIX] sequence: no more "for update"
lp bug: https://launchpad.net/bugs/314449 fixed bzr revid: christophe@tinyerp.com-20090129170955-5lan3f8m0pogqtvx
Diffstat (limited to 'addons/account/sequence.py')
-rw-r--r--addons/account/sequence.py2
1 files changed, 1 insertions, 1 deletions
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: