problems exporting translation

Bug #1161763 reported by Nicola Riolini - Micronaet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Hello, in my, today updated, OpenERP 7 on Ubuntu 12.04, when exporting translation of any module I have this error:

OpenERP Server Error

Client Traceback (most recent call last):
  File "/home/thebrush/lp7/openerp/openerp/addons/web/http.py", line 203, in dispatch
    response["result"] = method(self, **self.params)
  File "/home/thebrush/lp7/openerp/openerp/addons/web/controllers/main.py", line 1133, in call_button
    action = self._call_kw(req, model, method, args, {})
  File "/home/thebrush/lp7/openerp/openerp/addons/web/controllers/main.py", line 1121, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/home/thebrush/lp7/openerp/openerp/addons/web/session.py", line 43, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/home/thebrush/lp7/openerp/openerp/addons/web/session.py", line 31, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/home/thebrush/lp7/openerp/openerp/addons/web/session.py", line 104, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
  File "/home/thebrush/lp7/openerp/openerp/addons/web/session.py", line 90, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/home/thebrush/lp7/openerp/openerp/netsvc.py", line 293, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/home/thebrush/lp7/openerp/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/home/thebrush/lp7/openerp/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/home/thebrush/lp7/openerp/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/thebrush/lp7/openerp/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/thebrush/lp7/openerp/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/thebrush/lp7/openerp/openerp/addons/base/module/wizard/base_export_language.py", line 65, in act_getfile
    tools.trans_export(lang, mods, buf, this.format, cr)
  File "/home/thebrush/lp7/openerp/openerp/tools/translate.py", line 498, in trans_export
    _process(format, modules, translations, buffer, lang)
  File "/home/thebrush/lp7/openerp/openerp/tools/translate.py", line 453, in _process
    for module, type, name, res_id, src, trad, comments in rows:
ValueError: need more than 6 values to unpack

Thanks
Nicola

description: updated
Revision history for this message
Nicola Riolini - Micronaet (nicolariolini) wrote :

Debugging line:
> /home/thebrush/lp7/openerp/openerp/tools/translate.py(453)_process()

In this loop:
-> for module, type, name, res_id, src, trad, comments in rows:

This is the error:
ValueError: 'need more than 6 values to unpack'

This is rows content of my (little) module:
[['module', 'type', 'name', 'res_id', 'src', 'value'], ['sale_quotation_report', 'field', 'sale.order,deadline_order', 0, 'Deadline', 'Deadline'], ['sale_quotation_report', 'report', 'addons/sale_quotation_report/report/sale_webkit.mako', 86, 'Dear', 'Dear'], ['sale_quotation_report', 'report', 'addons/sale_quotation_report/report/sale_webkit.mako', 92, 'Invoice address', 'Invoice address'], ['sale_quotation_report', 'sql_constraint', 'sale.order', 0, 'Order Reference must be unique per Company!', 'Il Riferimento Ordine deve essere unico per azienda!'], ['sale_quotation_report', 'model', 'ir.actions.report.xml,name', 'sale_quotation_report.webkit_bom_line_report', 'Quotation report', 'Quotation report'], ['sale_quotation_report', 'model', 'ir.actions.report.xml,name', 'sale_quotation_report.webkit_sale_quotation_report', 'Quotation report', 'Quotation report'], ['sale_quotation_report', 'model', 'ir.model,name', 'sale_quotation_report.model_sale_order', 'Sales Order', 'Ordine di vendita'], ['sale_quotation_report', 'report', 'addons/sale_quotation_report/report/sale_webkit.mako', 81, 'Shipping address', 'Shipping address']]

so in my list there's not "comment" field to unpack

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.