mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-14 01:41:26 -06:00

* Copyright and various stuff * Contributors * External ID not found in the system: base.group_document_user
13 lines
359 B
Python
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)
|