Files
gzth/yuthon_ai_agent/models/ai_attachment.py
T
2026-06-12 15:03:27 +08:00

13 lines
340 B
Python

# -*- coding: utf-8 -*-
"""扩展 documents.document,增加 AI OCR 内容字段"""
from odoo import models, fields
class DocumentsDocument(models.Model):
_inherit = 'documents.document'
ai_ocr_content = fields.Text(
string='AI OCR 识别内容',
help='上传到聊天附件时自动提取的文字内容'
)