Files
odoo_source/addons/fetchmail/models/mail_mail.py
T
Fabien Pinckaers eedf37d6e2 [IMP] Better handling of indexes
Three supported types:
- btree (default for index=True)
- btree not null (when >90% of the data are null)
- gin trigram search (for char fields)

Review of indexes on all objects.

closes odoo/odoo#83015

Signed-off-by: Fabien Pinckaers <fp@odoo.com>
2022-01-19 16:52:23 +00:00

11 lines
292 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class MailMail(models.Model):
_inherit = 'mail.mail'
fetchmail_server_id = fields.Many2one('fetchmail.server', "Inbound Mail Server", readonly=True)