This commit adapts the business code to changes introduced by the parent commit in order to keep the same behaviour as before. All readonly=False fields will have to be checked afterwards to confirm that the business case requires write access to the source field.
13 lines
448 B
Python
13 lines
448 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import fields, models
|
|
|
|
|
|
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, readonly=False)
|