mirror of
https://github.com/OCA/knowledge.git
synced 2025-12-19 03:42:19 -06:00
Port to v10
This commit is contained in:
8
document_knowledge/models/ir_attachment.py
Normal file
8
document_knowledge/models/ir_attachment.py
Normal file
@@ -0,0 +1,8 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user