2018-01-16 06:58:15 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-01-16 11:34:37 +01:00
|
|
|
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
2018-01-16 06:58:15 +01:00
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
from flectra import api, fields, models
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
class MailMessage(models.Model):
|
|
|
|
_inherit = 'mail.message'
|
|
|
|
|
|
|
|
@api.multi
|
|
|
|
def _portal_message_format(self, field_list):
|
|
|
|
# inlude rating value in data if requested
|
|
|
|
if self._context.get('rating_include'):
|
|
|
|
field_list += ['rating_value']
|
|
|
|
return super(MailMessage, self)._portal_message_format(field_list)
|