[5.0] "print screen" when translated to "Impr écran"

Bug #396457 reported by Numérigraphe
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Undecided
Olivier Laurent (Open ERP)

Bug Description

I get a python error on the client side when I try to use the "print screen" report using the French locale.
Printing other reports with UTF8 characters does work, but not "Impr écran".
If I change my preferences to the English locale, then print screen works.

The error message is :
Traceback (most recent call last):
  File "/home/ls/Projets/OpenERP/v5.0/client/bin/modules/gui/main.py", line 1287, in _sig_child_call
    res = wid.handlers[button_name]()
  File "/home/ls/Projets/OpenERP/v5.0/client/bin/modules/gui/window/form.py", line 384, in sig_print
    self.sig_action('client_print_multi', adds={_('Print Screen'): {'report_name':'printscreen.list', 'name':_('Print Screen'), 'type':'ir.actions.report.xml'}})
  File "/home/ls/Projets/OpenERP/v5.0/client/bin/modules/gui/window/form.py", line 370, in sig_action
    res = obj.exec_keyword(keyword, {'model':self.screen.resource, 'id': id or False, 'ids':ids, 'report_type': report_type}, adds, self.screen.context)
  File "/home/ls/Projets/OpenERP/v5.0/client/bin/modules/action/main.py", line 185, in exec_keyword
    res = common.selection(_('Select your action'), keyact)
  File "/home/ls/Projets/OpenERP/v5.0/client/bin/common/common.py", line 117, in selection
    res = (res, values[res.decode('utf8')])
KeyError: u'Impr \xe9cran'

Related branches

Changed in openobject-client:
status: New → Confirmed
Revision history for this message
gpa(OpenERP) (gpa-openerp) wrote :

Hello Numérigraphe ,

Can you please put comment these lines in client/bin/modules/action/main.py Line Number 174 to 179.
And check again.
Please notify me.

Thanks.

Revision history for this message
Numérigraphe (numerigraphe) wrote :

"Impr écran" works when I comment these lines out.

Lionel.

Revision history for this message
gpa(OpenERP) (gpa-openerp) wrote :

Thanks For Notifying us

Changed in openobject-client:
assignee: nobody → gpa(tiny) (gpa-openerp)
Changed in openobject-client:
assignee: gpa(tiny) (gpa-openerp) → Olivier (Open ERP) (olt)
Revision history for this message
Olivier Laurent (Open ERP) (olt) wrote :
Changed in openobject-client:
status: Confirmed → Fix Committed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Lionel.

Can you please update your code and check ?

Thanks.

Changed in openobject-client:
status: Fix Committed → Fix Released
Revision history for this message
Numérigraphe (numerigraphe) wrote :

It's working again now using the latest 5.0 branches.
Is there a way I can fix the windows clients I have installed everywhere else, or do I have to wait for a new all-in-one package ?
Lionel.

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.