13 lines
340 B
Python
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='上传到聊天附件时自动提取的文字内容'
|
|
)
|