UnboundLocalError: local variable 'i' referenced before assignment

Bug #891500 reported by Amit Parik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Low
OpenERP's Framework R&D

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

Related branches

Amit Parik (amit-parik)
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

Thanks for reporting !

It has been fixed @lp:~openerp-dev/openobject-server/trunk-bug-891500-nch with revision-info:3811 <email address hidden> and will be merged soon to the trunk server.

Regards,

Changed in openobject-server:
status: Confirmed → Fix Committed
Revision history for this message
Vo Minh Thu (thu) wrote :

Thanks! Fix landed in trunk:
revno: 3811
revision-id: <email address hidden>

Changed in openobject-server:
status: Fix Committed → Fix Released
Revision history for this message
Pravitha V (pravithavarghese1) wrote :

inialize the variable i=0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.