- Preserved explicit 3rd-party copyright notices - Explicit boilerplate should not be necessary - copyright law applies automatically in all countries thanks to Berne Convention + WTO rules, and a reference to the applicable license is clear enough.
20 lines
572 B
Python
20 lines
572 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from openerp.osv import osv, fields
|
|
|
|
# TODO for trunk, remove me
|
|
class MailThread(osv.AbstractModel):
|
|
_inherit = 'mail.thread'
|
|
|
|
_columns = {
|
|
'website_message_ids': fields.one2many(
|
|
'mail.message', 'res_id',
|
|
domain=lambda self: [
|
|
'&', ('model', '=', self._name), ('message_type', '=', 'comment')
|
|
],
|
|
string='Website Messages',
|
|
help="Website communication history",
|
|
),
|
|
}
|