unable to install l10n_fr chart of account

Bug #326054 reported by Naresh(OpenERP)
2
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
OpenERP Core Team

Bug Description

hello,

I am on latest trunk revision 6th feb and when i create new DB and select france chart of account i get the traceback as under and nothing seems to proceed... i have to skip the rest states in configuration wizard.

server side traceback
********************

[2009-02-06 12:43:37,408] ERROR:init:[01]: <record id="pcg_bavar16" model="l10n.fr.line">
[2009-02-06 12:43:37,408] ERROR:init:[02]: <field name="name">Immobilisations financiéres : Créances rattachées à des participations</field>
[2009-02-06 12:43:37,408] ERROR:init:[03]: <field name="definition">{'load':['+:267:S','+:268:S'], 'except':[]}</field>
[2009-02-06 12:43:37,408] ERROR:init:[04]: <field name="code">bavar16</field>
[2009-02-06 12:43:37,409] ERROR:init:[05]: <field name="report_id" ref="pcg_bilan"/>
[2009-02-06 12:43:37,409] ERROR:init:[06]: </record>
[2009-02-06 12:43:37,412] ERROR:web-services:[01]: Traceback (most recent call last):
[2009-02-06 12:43:37,413] ERROR:web-services:[02]: File "/home/nch/openERP/latest/server/bin/osv/osv.py", line 59, in wrapper
[2009-02-06 12:43:37,413] ERROR:web-services:[03]: return f(self, dbname, *args, **kwargs)
[2009-02-06 12:43:37,413] ERROR:web-services:[04]: File "/home/nch/openERP/latest/server/bin/osv/osv.py", line 119, in execute
[2009-02-06 12:43:37,413] ERROR:web-services:[05]: res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
[2009-02-06 12:43:37,413] ERROR:web-services:[06]: File "/home/nch/openERP/latest/server/bin/osv/osv.py", line 111, in execute_cr
[2009-02-06 12:43:37,413] ERROR:web-services:[07]: return getattr(object, method)(cr, uid, *args, **kw)
[2009-02-06 12:43:37,414] ERROR:web-services:[08]: File "/home/nch/openERP/latest/addons/account/account.py", line 1725, in action_create
[2009-02-06 12:43:37,414] ERROR:web-services:[09]: self.install_account_chart(cr,uid,ids)
[2009-02-06 12:43:37,414] ERROR:web-services:[10]: File "/home/nch/openERP/latest/addons/account/account.py", line 1705, in install_account_chart
[2009-02-06 12:43:37,414] ERROR:web-services:[11]: db, pool = pooler.restart_pool(cr.dbname, update_module=True)
[2009-02-06 12:43:37,414] ERROR:web-services:[12]: File "/home/nch/openERP/latest/server/bin/pooler.py", line 61, in restart_pool
[2009-02-06 12:43:37,414] ERROR:web-services:[13]: return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
[2009-02-06 12:43:37,415] ERROR:web-services:[14]: File "/home/nch/openERP/latest/server/bin/pooler.py", line 40, in get_db_and_pool
[2009-02-06 12:43:37,415] ERROR:web-services:[15]: addons.load_modules(db, force_demo, status, update_module)
[2009-02-06 12:43:37,415] ERROR:web-services:[16]: File "/home/nch/openERP/latest/server/bin/addons/__init__.py", line 704, in load_modules
[2009-02-06 12:43:37,415] ERROR:web-services:[17]: r = load_module_graph(cr, graph, status, report=report)
[2009-02-06 12:43:37,415] ERROR:web-services:[18]: File "/home/nch/openERP/latest/server/bin/addons/__init__.py", line 605, in load_module_graph
[2009-02-06 12:43:37,415] ERROR:web-services:[19]: tools.convert_xml_import(cr, m, fp, idref, mode=mode, **kwargs)
[2009-02-06 12:43:37,415] ERROR:web-services:[20]: File "/home/nch/openERP/latest/server/bin/tools/convert.py", line 881, in convert_xml_import
[2009-02-06 12:43:37,416] ERROR:web-services:[21]: obj.parse(xmlstr)
[2009-02-06 12:43:37,416] ERROR:web-services:[22]: File "/home/nch/openERP/latest/server/bin/tools/convert.py", line 775, in parse
[2009-02-06 12:43:37,416] ERROR:web-services:[23]: self._tags[rec.nodeName](self.cr, rec, n)
[2009-02-06 12:43:37,416] ERROR:web-services:[24]: File "/home/nch/openERP/latest/server/bin/tools/convert.py", line 743, in _tag_record
[2009-02-06 12:43:37,416] ERROR:web-services:[25]: id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode )
[2009-02-06 12:43:37,416] ERROR:web-services:[26]: File "/home/nch/openERP/latest/server/bin/addons/base/ir/ir_model.py", line 479, in _update
[2009-02-06 12:43:37,417] ERROR:web-services:[27]: res_id = model_obj.create(cr, uid, values)
[2009-02-06 12:43:37,417] ERROR:web-services:[28]: File "/home/nch/openERP/latest/server/bin/osv/orm.py", line 2421, in create
[2009-02-06 12:43:37,417] ERROR:web-services:[29]: upd2.append(self._columns[field]._symbol_set[1](vals[field]))
[2009-02-06 12:43:37,417] ERROR:web-services:[30]: File "/home/nch/openERP/latest/server/bin/osv/fields.py", line 159, in _symbol_set_char
[2009-02-06 12:43:37,417] ERROR:web-services:[31]: u_symb = unicode(symb.replace('\xa0', '\xc2\xa0'), 'utf8')
[2009-02-06 12:43:37,417] ERROR:web-services:[32]: File "/usr/lib/python2.4/encodings/utf_8.py", line 16, in decode
[2009-02-06 12:43:37,418] ERROR:web-services:[33]: return codecs.utf_8_decode(input, errors, True)
[2009-02-06 12:43:37,418] ERROR:web-services:[34]: UnicodeDecodeError: 'utf8' codec can't decode bytes in position 53-54: invalid data

qdp (OpenERP) (qdp)
Changed in openobject-addons:
status: New → Confirmed
qdp (OpenERP) (qdp)
Changed in openobject-addons:
assignee: nobody → openerp
status: Confirmed → In Progress
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

I tested on Linux with a small patch and it works fine. so I am going to check on Windows and If success I provide my patch

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Fixed in trunk, Works on Linux and Windows !

Changed in openobject-addons:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.