18 lines
494 B
Python
18 lines
494 B
Python
from odoo import fields, models
|
|
|
|
|
|
class FusionOcrLog(models.Model):
|
|
_name = 'fusion.ocr.log'
|
|
_description = 'Fusion OCR Run Log'
|
|
_order = 'create_date desc'
|
|
|
|
move_id = fields.Many2one(
|
|
'account.move', required=True, ondelete='cascade', index=True,
|
|
)
|
|
backend = fields.Char(required=True)
|
|
confidence = fields.Float()
|
|
raw_text_length = fields.Integer()
|
|
pages = fields.Integer()
|
|
error = fields.Text()
|
|
create_date = fields.Datetime(readonly=True)
|