[MERGE] fixed unbound variable.

bzr revid: vmt@openerp.com-20111118091854-cebg3ab85m3iaqw9
This commit is contained in:
Vo Minh Thu 2011-11-18 10:18:54 +01:00
commit 210c58d825
1 changed files with 2 additions and 2 deletions

View File

@ -150,9 +150,9 @@ class ir_sequence(openerp.osv.osv.osv):
for row in rows:
# 4 cases: we test the previous impl. against the new one.
i = values.get('number_increment', row['number_increment'])
n = values.get('number_next', row['number_next'])
if row['implementation'] == 'standard':
i = values.get('number_increment', row['number_increment'])
n = values.get('number_next', row['number_next'])
if new_implementation in ('standard', None):
self._alter_sequence(cr, row['id'], i, n)
else: