DTA wizard crash with l10n_ch
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
With version 5.0 when I click "Make payment" for generate dta file.
generate this error.
Traceback (most recent call last):
File "/usr/lib/
result = LocalService(
File "/usr/lib/
return getattr(self, method)(*params)
File "/usr/lib/
return self._execute(db, uid, wiz_id, datas, action, context)
File "/usr/lib/
return wiz.execute(db, uid, self.wiz_
File "/usr/lib/
res = self.execute_cr(cr, uid, data, state, context)
File "/usr/lib/
action_res = action(self, cr, uid, data, context)
File "/usr/lib/
dta_line = record_
File "/usr/lib/
and tr(global_
File "/usr/lib/
s= s.decode('utf-8')
File "/usr/lib/
return codecs.
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 14: ordinal not in range(128)
I guess tr(s) on line 65 into file dta_wizard.py raise exception, because the string s is already in unicode type.
I made a small change into tr(s) method for detect the kind of string.
def tr(s):
if type(s) != type(u'0'):
s = s.decode('utf-8')
for k in TRANS:
s = s.replace(
try:
except:
res = s
return res
And now it's work.
Related branches
- OpenERP Core Team: Pending requested
- OpenERP Core Team: Pending requested
-
Diff: 3141 lines15 files modifiedl10n_ch/__terp__.py (+38/-44)
l10n_ch/account_move_line.py (+33/-33)
l10n_ch/bank.py (+17/-8)
l10n_ch/bank_view.xml (+26/-0)
l10n_ch/company.py (+11/-11)
l10n_ch/dta.py (+53/-53)
l10n_ch/invoice.py (+166/-166)
l10n_ch/partner.py (+51/-53)
l10n_ch/payment.py (+5/-5)
l10n_ch/report/bvr.py (+84/-62)
l10n_ch/report/bvr.rml (+29/-26)
l10n_ch/report/invoice.rml (+37/-32)
l10n_ch/report/tiny_sxw2rml.py (+0/-342)
l10n_ch/wizard/bvr_import.py (+198/-198)
l10n_ch/wizard/dta_wizard.py (+529/-519)
Changed in openobject-addons: | |
assignee: | nobody → jvo-openerp |
Changed in openobject-addons: | |
status: | New → Incomplete |
Changed in openobject-addons: | |
status: | Fix Released → Fix Committed |
As it concern l10n-ch module, Camptocamp will correct it.
Regards
LUc