|
@ -236,7 +236,7 @@ class XLSXExport(models.AbstractModel): |
|
|
return (out_file, out_name) |
|
|
return (out_file, out_name) |
|
|
# Prepare temp file (from now, only xlsx file works for openpyxl) |
|
|
# Prepare temp file (from now, only xlsx file works for openpyxl) |
|
|
decoded_data = base64.decodestring(template.datas) |
|
|
decoded_data = base64.decodestring(template.datas) |
|
|
ConfParam = self.env['ir.config_parameter'] |
|
|
|
|
|
|
|
|
ConfParam = self.env['ir.config_parameter'].sudo() |
|
|
ptemp = ConfParam.get_param('path_temp_file') or '/tmp' |
|
|
ptemp = ConfParam.get_param('path_temp_file') or '/tmp' |
|
|
stamp = dt.utcnow().strftime('%H%M%S%f')[:-3] |
|
|
stamp = dt.utcnow().strftime('%H%M%S%f')[:-3] |
|
|
ftemp = '%s/temp%s.xlsx' % (ptemp, stamp) |
|
|
ftemp = '%s/temp%s.xlsx' % (ptemp, stamp) |
|
|