[REM] website_blog: remove path field on mail.message
It comes from old age and does not seem used anymore.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import mail_message
|
||||
from . import website
|
||||
from . import website_blog
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class MailMessage(models.Model):
|
||||
_inherit = 'mail.message'
|
||||
|
||||
path = fields.Char(
|
||||
'Discussion Path', index=True,
|
||||
help='Used to display messages in a paragraph-based chatter using a unique path;')
|
||||
@@ -140,7 +140,7 @@ class BlogPost(models.Model):
|
||||
teaser = fields.Text('Teaser', compute='_compute_teaser', inverse='_set_teaser')
|
||||
teaser_manual = fields.Text(string='Teaser Content')
|
||||
|
||||
website_message_ids = fields.One2many(domain=lambda self: [('model', '=', self._name), ('message_type', '=', 'comment'), ('path', '=', False)])
|
||||
website_message_ids = fields.One2many(domain=lambda self: [('model', '=', self._name), ('message_type', '=', 'comment')])
|
||||
|
||||
# creation / update stuff
|
||||
create_date = fields.Datetime('Created on', index=True, readonly=True)
|
||||
|
||||
Reference in New Issue
Block a user