summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2021-04-14 08:59:23 +0000
committerGoffin Simon <sig@odoo.com>2021-04-15 10:09:29 +0000
commitd37917bfc8b174595a7b5de92aa4d2f902ab6f28 (patch)
tree4a0b19c77eda5f930989c4be66f577bb4d583c6b /addons
parent87c207f3a408abb93d9b8378ef4aa1744935d86d (diff)
[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#69300 X-original-commit: 69b27ac3f778b99a7d583ee6a9e8607a36d0a3b2 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/models/mail_message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/models/mail_message.py b/addons/mail/models/mail_message.py
index dd21275d779..980902a4d37 100644
--- a/addons/mail/models/mail_message.py
+++ b/addons/mail/models/mail_message.py
@@ -701,11 +701,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.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)
# ------------------------------------------------------
# DISCUSS API