← Back to team overview

openerp-india team mailing list archive

[Bug 891500] Re: UnboundLocalError: local variable 'i' referenced before assignment

 

Hello,

Thanks for reporting !

It has been fixed @lp:~openerp-dev/openobject-server/trunk-
bug-891500-nch with revision-info:3811
nch@xxxxxxxxxxx-20111118085439-wgei8ockgn84jnep and will be merged soon
to the trunk server.

Regards,

** Changed in: openobject-server
       Status: Confirmed => Fix Committed

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/891500

Title:
  UnboundLocalError: local variable 'i' referenced before assignment

Status in OpenERP Server:
  Fix Committed

Bug description:
  Administration/Configuration/Sequences & Identifiers/Sequences
  Change the implementation field "No gap" save it, again select the "Standard" on same field save the record. It gives a following error.

  Traceback (most recent call last):
    File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 120, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 172, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/amp/workspace/trunk6/server/openerp/osv/osv.py", line 163, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/amp/workspace/trunk6/server/openerp/addons/base/ir/ir_sequence.py", line 164, in write
      self._create_sequence(cr, row['id'], i, n)
  UnboundLocalError: local variable 'i' referenced before assignment

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/891500/+subscriptions


References