Skip to content
Snippets Groups Projects
Commit af67d6b9 authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] mail: Wrong signature of function export_data


Steps to reproduce the bug:

- Go to Settings > Technical > Messages
- Select some records and export it

Bug:

A traceback was raised because

PS: When exporting data, the function export_date is called from web/controllers/main.py
with the attribute raw_data

opw:2504763

closes odoo/odoo#69228

Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
parent 982ac9f5
No related branches found
No related tags found
No related merge requests found
......@@ -1047,11 +1047,11 @@ class Message(models.Model):
limit=limit, orderby=orderby, lazy=lazy,
)
def export_data(self, fields_to_export):
def export_data(self, fields_to_export, raw_data=False):
if not self.env.user._is_admin():
raise AccessError(_("Only administrators are allowed to export mail message"))
return super(Message, self).export_data(fields_to_export)
return super(Message, self).export_data(fields_to_export, raw_data)
#------------------------------------------------------
# Messaging API
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment