mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-14 01:41:26 -06:00
9 lines
214 B
Python
9 lines
214 B
Python
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)
|