[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:
Thibault Delavallée
2018-01-04 16:57:45 +01:00
parent b12f8c2bc0
commit 33ebc538ca
3 changed files with 1 additions and 14 deletions
-1
View File
@@ -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;')
+1 -1
View File
@@ -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)