[FIX]:UnboundLocalError

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

bzr revid: nch@tinyerp.com-20111118085439-wgei8ockgn84jnep
This commit is contained in:
Naresh (OpenERP) 2011-11-18 14:24:39 +05:30
parent c418cfcb9d
commit 84a6f91180
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: