You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you define in an XML file an aeroo report with a "name" field that has a non-ASCII character, you will get this error message in the logs when you install the module:
report_aeroo: Error loading report parser: 'ascii' codec can't encode character u'\xe7' in position 33: ordinal not in range(128)
Code analysis:
The crash happens in report_aeroo/report_xml.py line 124 on:
py_mod = imp.load_source(mod_name, filepath)
the variable mod_name contains "o8_test1_receipt_invoice_style_reçu_style_facture" that has a non-ascii char and it fails.
This comes from the "key" variable, which is an argument of the method load_from_file(). This method is called from the create() method line 537 of report_xml.py:
parser=self.load_from_file(vals['parser_loc'], vals['name'].lower().replace(' ','_')) or parser
vals['name'] is the "name" field of the object ir.actions.report.xml, which may contains non-ascii characters.
It don't know what is the proper solution to solve this. Could we use vals['report_name'] ? Should we use unidecode() to remove the non-ascii chars ?
The text was updated successfully, but these errors were encountered:
If you define in an XML file an aeroo report with a "name" field that has a non-ASCII character, you will get this error message in the logs when you install the module:
Example of a file report.xml that fails:
Code analysis:
The crash happens in report_aeroo/report_xml.py line 124 on:
the variable mod_name contains "o8_test1_receipt_invoice_style_reçu_style_facture" that has a non-ascii char and it fails.
This comes from the "key" variable, which is an argument of the method load_from_file(). This method is called from the create() method line 537 of report_xml.py:
vals['name'] is the "name" field of the object ir.actions.report.xml, which may contains non-ascii characters.
It don't know what is the proper solution to solve this. Could we use vals['report_name'] ? Should we use unidecode() to remove the non-ascii chars ?
The text was updated successfully, but these errors were encountered: