Unicode error when converting lead into opportunity in CRM module with spanish localization
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web Client |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In CRM module when converting a lead without an associated partner to an opportunity openerp raises an Unicode exception instead of showing the Spanish equivalent of the following warning string:
«You must assign a partner to this lead before converting to opportunity. You can use the convert to partner button. .»
Obviously this just happens when using the Spanish language. In English everything is fine
The exception is:
[18/Feb/
File "/usr/lib/
cherrypy.
File "/usr/lib/
return self.callable(
File "/usr/lib/
return fn(*args, **kw)
File "/usr/lib/
res = func(*args, **kw)
File "/usr/lib/
return func(*args, **kw)
File "/usr/lib/
return func(*args, **kw)
File "/usr/lib/
res = self.button_
File "/usr/lib/
context=
File "/usr/lib/
return execute(res, **data)
File "/usr/lib/
return execute_
File "/usr/lib/
return Wizard(
File "/usr/lib/
return fn(*args, **kw)
File "/usr/lib/
res = func(*args, **kw)
File "/usr/lib/
return self.execute(
File "/usr/lib/
res = rpc.session.
File "/usr/lib/
return self.gateway.
File "/usr/lib/
return self.__execute(obj, method, args)
File "/usr/lib/
raise common.
File "/usr/lib/
raise TinyError(
TinyError: unicode() argument 2 must be string, not None
The list of modules I'm currently using are:
account
account_
account_
account_payment
account_
account_tax_include
base
base_contact
base_iban
base_setup
base_vat
crm
crm_configuration
crm_profiling
document
document_ics
hr
l10n_ES_
l10n_ES_
l10n_ES_partner
l10n_ES_
l10n_ES_partner_seq
l10n_ES_pyme_custom
l10n_ES_
l10n_ES_remesas
l10n_ES_toponyms
l10n_chart_ES
label
mrp
partner_spam
point_of_sale
process
product
purchase
report_crm
sale
sale_payment
smtpclient
stock
use_control
The branch versions I'm using are:
addons/
-------
revno: 2585
author: GPA(OpenERP)
committer: Jay(Open ERP)<email address hidden>
branch nick: 5.0
timestamp: Tue 2010-02-16 17:58:39 +0530
extra-addons/
-------
revno: 4250
committer: mra (Open ERP)<email address hidden>
branch nick: stable_
timestamp: Tue 2010-02-16 12:45:41 +0530
openerp-server/
-------
revno: 1972
committer: Jay(Open ERP)<email address hidden>
branch nick: 5.0
timestamp: Tue 2010-02-16 17:07:24 +0530
openerp-web/
-------
revno: 2811
committer: sma(Tiny) <email address hidden>
branch nick: 5.0
timestamp: Mon 2010-02-08 15:05:04 +0530
openerp-spain/
-------
revno: 105
committer: Jordi Esteve <email address hidden>
branch nick: lp-openerp-
timestamp: Tue 2010-02-09 20:33:03 +0100
affects: | openobject-addons → openobject-client-web |
Changed in openobject-client-web: | |
status: | New → Confirmed |
Changed in openobject-client-web: | |
status: | Fix Committed → Fix Released |
Hi!
I've found the same behaviour in another part of the CRM module.
If I try to upload a file to the document server provided by "Document Managemennt" w/o permissions to write in the ftp server, and if the interface is in spanish I get a Unicode exception instead of the spanish equivalent of the TinyWarning:
TinyWarning: ('Permission Denied !', 'You do not permissions to write on the server side.')
The backtrace of the bug is:
[23/Feb/ 2010:18: 24:10] HTTP Traceback (most recent call last): python2. 5/site- packages/ CherryPy- 3.1.2-py2. 5.egg/cherrypy/ _cprequest. py", line 606, in respond response. body = self.handler() python2. 5/site- packages/ CherryPy- 3.1.2-py2. 5.egg/cherrypy/ _cpdispatch. py", line 25, in __call__ *self.args, **self.kwargs) python2. 5/site- packages/ openerp_ web-5.0. 6-py2.5. egg/openerp/ controllers/ base.py" , line 122, in wrapper python2. 5/site- packages/ openerp_ web-5.0. 6-py2.5. egg/openerp/ tools/expose. py", line 204, in func_wrapper python2. 5/site- packages/ openerp_ web-5.0. 6-py2.5. egg/openerp/ tools/utils. py", line 148, in func_wrapper python2. 5/site- packages/ openerp_ web-5.0. 6-py2.5. egg/openerp/ tools/utils. py", line 165, in func_wrapper python2. 5/site- packages/ openerp_ web-5.0. 6-py2.5. egg/openerp/ controllers/ form.py" , line 393, in save python2. 5/site- packages/ openerp_ web-5.0. 6-py2.5. egg/openerp/ rpc.py" , line 389, in <lambda> execute( "object" , "execute", self._resource, name, *args) python2. 5/site- packages/ openerp_ web-5.0. 6-py2.5. egg/openerp/ rpc.py" , line 350, in execute execute( obj, method, *args) python2. 5/site- packages/ openerp_ web-5.0. 6-py2.5. egg/openerp/ rpc.py" , line 154, in execute python2. 5/site- packages/ openerp_ web-5.0. 6-py2.5. egg/openerp/ rpc.py" , line 143, in __execute error(_ ('Application Error!'), str(e)) python2. 5/site- packages/ openerp_ web-5.0. 6-py2.5. egg/openerp/ common. py", line 72, in error message= msg, title=title or _("Error"))
File "/usr/lib/
cherrypy.
File "/usr/lib/
return self.callable(
File "/usr/lib/
return fn(*args, **kw)
File "/usr/lib/
res = func(*args, **kw)
File "/usr/lib/
return func(*args, **kw)
File "/usr/lib/
return func(*args, **kw)
File "/usr/lib/
id = proxy.create(data, params.context)
File "/usr/lib/
return lambda *args: self._session.
File "/usr/lib/
return self.gateway.
File "/usr/lib/
return self.__execute(obj, method, args)
File "/usr/lib/
raise common.
File "/usr/lib/
raise TinyError(
TinyError: unicode() argument 2 must be string, not None
If you believe I should open a new bug report instead of appending it to this thread, please tell me.
-- hmontoliu. blogspot. com
Hilario J. Montoliu
hmontoliu <at> ubuntu.com
http://