knowledge/document_knowledge/models/ir_attachment.py
Maxime Chambreuil 4e36cf5a57 [FIX] knowledge: Several things
* Copyright and various stuff
* Contributors
* External ID not found in the system: base.group_document_user
2024-10-29 17:33:23 +07:00

13 lines
359 B
Python

# -*- coding: utf-8 -*-
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class IrAttachment(models.Model):
_inherit = 'ir.attachment'
# Add index to res_model because filtering on it is a common use case
res_model = fields.Char(index=True)