c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #24071
[Bug 781701] [NEW] Error on unchecking Account active
Public bug reported:
When I edit an account form and uncheck the "Active" flag, the changed account cannot be saved.
When checking the "Active" flag back again, the account cannot be saved.
When I want to switch back to List view a dialog asks whether I want to save. If I want to save, I get an error, but when I do NOT want to save I get an error as well.
I have to open another account form, go back to the first one (with the error) and only then I can close it without saving.
I can make changes to other properties of these accounts without errors.
I am running GTK client v 6.0.2 on Debian Squeeze
Server OpenERP version - 6.0.2 on same machine.
This is the error message:
Environment Information :
System : Linux-2.6.32-5-686-i686-with-debian-6.0.1
OS Name : posix
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.1 (squeeze)
Release: 6.0.1
Codename: squeeze
Operating System Release : 2.6.32-5-686
Operating System Version : #1 SMP Tue Mar 8 21:36:00 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/share/pyshared/openerp-server/osv/orm.py", line 2940, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/share/pyshared/openerp-server/osv/orm.py", line 3054, in _read_flat
if isinstance(res2[record['id']], str): res2[record['id']] = eval(res2[record['id']]) #TOCHECK : why got string instend of dict in python2.6
TypeError: 'NoneType' object is unsubscriptable
jlinkels
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/781701
Title:
Error on unchecking Account active
Status in OpenERP Modules (addons):
New
Bug description:
When I edit an account form and uncheck the "Active" flag, the changed account cannot be saved.
When checking the "Active" flag back again, the account cannot be saved.
When I want to switch back to List view a dialog asks whether I want to save. If I want to save, I get an error, but when I do NOT want to save I get an error as well.
I have to open another account form, go back to the first one (with the error) and only then I can close it without saving.
I can make changes to other properties of these accounts without errors.
I am running GTK client v 6.0.2 on Debian Squeeze
Server OpenERP version - 6.0.2 on same machine.
This is the error message:
Environment Information :
System : Linux-2.6.32-5-686-i686-with-debian-6.0.1
OS Name : posix
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.1 (squeeze)
Release: 6.0.1
Codename: squeeze
Operating System Release : 2.6.32-5-686
Operating System Version : #1 SMP Tue Mar 8 21:36:00 UTC 2011
Operating System Architecture : 32bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.6
OpenERP-Client Version : 6.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/usr/share/pyshared/openerp-server/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/usr/share/pyshared/openerp-server/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/share/pyshared/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/share/pyshared/openerp-server/osv/orm.py", line 2940, in read
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/share/pyshared/openerp-server/osv/orm.py", line 3054, in _read_flat
if isinstance(res2[record['id']], str): res2[record['id']] = eval(res2[record['id']]) #TOCHECK : why got string instend of dict in python2.6
TypeError: 'NoneType' object is unsubscriptable
jlinkels
Follow ups
References