[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#69308 X-original-commit: 69b27ac3f778b99a7d583ee6a9e8607a36d0a3b2 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
This commit is contained in:
@@ -710,11 +710,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
|
||||
|
||||
Reference in New Issue
Block a user