2018-01-16 06:58:15 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-01-16 11:34:37 +01:00
|
|
|
from flectra import fields, models
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Rating(models.Model):
|
|
|
|
|
|
|
|
_inherit = 'rating.rating'
|
|
|
|
|
|
|
|
# Add this related field to mail.message for performance reason
|
|
|
|
# This field may one day be deplaced to another module (like 'website_rating') if it is required for
|
|
|
|
# another usage not related to website_sale.
|
|
|
|
website_published = fields.Boolean(related='message_id.website_published', store=True)
|