openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #18116
[Bug 1081555] [NEW] Changing currency in Pricelist breaks Product Creation
Public bug reported:
Using latest 6.2 developer on Debian.
Enable the following options.
Settings > Configuration > Sales
[x] Use pricelists to adapt your price per customers
Settings > Configuration > Accounting
[x] Allow multi currencies
Go to Sales > Pricelist > Pricelist Versions
Select "Default Public Pricelist Version"
in new window click on Price List "Public Pricelist (EUR)
Edit and change the currency to anything but the default and save.
Go to Sales > Products and attempt to create a new product.
You will get an error and cannot reverse the problem even if you revert
the settings;
Here's the error;
OpenERP Server Error
Client Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/http.py", line 192, in dispatch
response["result"] = method(self, **self.params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/controllers/main.py", line 1235, in call_kw
return self._call_kw(req, model, method, args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/controllers/main.py", line 1197, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/session.py", line 42, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/session.py", line 105, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/session.py", line 91, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/netsvc.py", line 361, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/service/web_services.py", line 596, in dispatch
res = fn(db, uid, *params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/orm.py", line 1606, in default_get
for i in range(len(field_value)):
TypeError: object of type 'bool' has no len()
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1081555
Title:
Changing currency in Pricelist breaks Product Creation
Status in OpenERP Addons (modules):
New
Bug description:
Using latest 6.2 developer on Debian.
Enable the following options.
Settings > Configuration > Sales
[x] Use pricelists to adapt your price per customers
Settings > Configuration > Accounting
[x] Allow multi currencies
Go to Sales > Pricelist > Pricelist Versions
Select "Default Public Pricelist Version"
in new window click on Price List "Public Pricelist (EUR)
Edit and change the currency to anything but the default and save.
Go to Sales > Products and attempt to create a new product.
You will get an error and cannot reverse the problem even if you
revert the settings;
Here's the error;
OpenERP Server Error
Client Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/http.py", line 192, in dispatch
response["result"] = method(self, **self.params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/controllers/main.py", line 1235, in call_kw
return self._call_kw(req, model, method, args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/controllers/main.py", line 1197, in _call_kw
return getattr(req.session.model(model), method)(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/session.py", line 42, in proxy
result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/session.py", line 30, in proxy_method
result = self.session.send(self.service_name, method, *args)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/session.py", line 105, in send
raise xmlrpclib.Fault(openerp.tools.exception_to_unicode(e), formatted_info)
Server Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/addons/web/session.py", line 91, in send
return openerp.netsvc.dispatch_rpc(service_name, method, args)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/netsvc.py", line 361, in dispatch_rpc
result = ExportService.getService(service_name).dispatch(method, params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/service/web_services.py", line 596, in dispatch
res = fn(db, uid, *params)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 167, in execute_kw
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 121, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/osv.py", line 164, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/local/lib/python2.7/dist-packages/openerp-6.2dev_20121119_000102-py2.7.egg/openerp/osv/orm.py", line 1606, in default_get
for i in range(len(field_value)):
TypeError: object of type 'bool' has no len()
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1081555/+subscriptions
Follow ups
References