avanzosc team mailing list archive
-
avanzosc team
-
Mailing list archive
-
Message #00169
[Bug 879323] Re: mrp_analytics_control: Unicode Encodning Error
Modified line 337 from:
'name':prod_wrk_name_acc_code + " " + _('Worker')+ " " + str(nombre),
to:
'name':prod_wrk_name_acc_code + " " + _('Worker') + " " + str(nombre).encode('ascii', 'replace'),
and ended up with this error instead:
File "/opt/openerp/server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/opt/openerp/server/bin/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/server/bin/addons/mrp_analytics_control/wizard/mrp_analytic_schema_wizard.py", line 118, in create_analytic_structure
if not (wizard_config.company_id.material_account or wizard_config.company_id.workcenter_account or wizard_config.company_id.operator_account):
File "/opt/openerp/server/bin/osv/orm.py", line 294, in __getattr__
raise AttributeError(e)
AttributeError: 'Field company_id not found in browse_record(mrp.analytic.wizard, 1)'
--
You received this bug notification because you are a member of Avanzosc
Developers, which is subscribed to Avanzosc developments.
https://bugs.launchpad.net/bugs/879323
Title:
mrp_analytics_control: Unicode Encodning Error
Status in Avanzosc OpenERP modules:
New
Bug description:
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "/opt/openerp/server/bin/netsvc.py", line 489, in dispatch
result = ExportService.getService(service_name).dispatch(method, auth, params)
File "/opt/openerp/server/bin/service/web_services.py", line 599, in dispatch
res = fn(db, uid, *params)
File "/opt/openerp/server/bin/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/server/bin/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/server/bin/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/server/bin/addons/mrp_analytics_control/wizard/mrp_analytic_schema_wizard.py", line 337, in create_analytic_structure
'name':prod_wrk_name_acc_code + " " + _('Worker')+ " " + str(nombre),
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 10: ordinal not in range(128)
To manage notifications about this bug go to:
https://bugs.launchpad.net/avanzosc/+bug/879323/+subscriptions
References