← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 787840] Re: No Excel export when lang not en_US

 

Hello Jean-Paul,

You're totally right, this used to work in v5, and stopped working in v6
due to a side-effect of the fix for bug 432343, which introduced this
string-based comparison in revision 1037 (analysis done by Naresh).

The temporary workaround is to switch to an english GTK version.

Thanks for reporting, and sorry for the late answer, we will provide a
fix as soon as possible.

** Changed in: openobject-client
   Importance: Undecided => Low

** Changed in: openobject-client
       Status: New => Confirmed

** Changed in: openobject-client
     Assignee: (unassigned) => OpenERP sa GTK client R&D (openerp-dev-gtk)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/787840

Title:
  No Excel export when lang not en_US

Status in OpenERP GTK Client:
  Confirmed

Bug description:
  To reproduce, on Windows:
  1) Install GTK client V6.0.x or V6.1
  2) Add a system environment variable in Windows: LANG=nl_NL
  3) Start GTK client, connect to a server. Observe: menu is in Dutch now.
  4) Try to export any data to Excel. Observe: you get a csv export instead. Notice the dropdown that allows you to select the export to Excel: it should say "Openen in Excel".

  Cause:
  The file bin/modules/gui/window/win_export.py contains the following code:
  if self.wid_action.get_active_text() == "Open in Excel":
                  open_excel(fields2, result)
              else:....

  However, when LANG=nl_NL, self.wid_action.get_active_text() equals
  "Openen in Excel".

  The code above contains a language-specific string that breaks when
  the translation is not "Open in Excel".

  On a Windows systems configured with Dutch as the default language,
  the export breaks without setting an environment variable. Workaround:
  add a system environment variable LANG=en_US. The client menu will be
  in English now.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/787840/+subscriptions


References