Comment 2 for bug 567736

Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote : Re: [Bug 567736] Re: [account_asset]Traceback when creating new asset

Hello GG,

New account-asset module is available in stable-extra. Can you check
> from there?
>
>
I have latest revision of stable-extra revno 4410, to the date,

I was trying to setup an active and when trying to set Initial Values
(button) this traceback
popped up.

Environment Information :
System : Linux-2.6.32-22-generic-i686-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-22-generic
Operating System Version : #36-Ubuntu SMP Thu Jun 3 22:02:19 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 5.0.10
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent
call last):
  File "/home/operador/5_10/server/bin/netsvc.py", line 247, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/operador/5_10/server/bin/netsvc.py", line 76, in __call__
    return getattr(self, method)(*params)
  File "/home/operador/5_10/server/bin/service/web_services.py", line 633,
in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/operador/5_10/server/bin/service/web_services.py", line 613,
in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/operador/5_10/server/bin/wizard/__init__.py", line 178, in
execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/operador/5_10/server/bin/wizard/__init__.py", line 73, in
execute_cr
    action_res = action(self, cr, uid, data, context)
  File
"/home/operador/5_10/server/bin/addons/account_asset/wizard/wizard_asset_initial.py",
line 79, in _asset_initial
    data['form']['acc_impairment'], data['form']['intervals_before'],
data['form']['name'], data['form']['note'], context)
  File
"/home/operador/5_10/server/bin/addons/account_asset/account_asset.py", line
284, in _initial
    base, expense, False, note, context)
  File
"/home/operador/5_10/server/bin/addons/account_asset/account_asset.py", line
774, in _history_line
    'note': str(note or ""),
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position
3: ordinal not in range(128)

====================
thanks in advance for your help,