changes
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = 'res.company'
|
||||
|
||||
fusion_ocr_enabled = fields.Boolean(
|
||||
string='Enable Invoice OCR',
|
||||
default=False,
|
||||
help="When enabled, vendor bill attachments can be OCR'd via the "
|
||||
"configured backend.",
|
||||
)
|
||||
fusion_ocr_default_backend = fields.Selection(
|
||||
[
|
||||
('tesseract', 'Tesseract (local, free)'),
|
||||
('manual', 'Manual entry only'),
|
||||
],
|
||||
default='tesseract',
|
||||
string='Default OCR Backend',
|
||||
)
|
||||
fusion_ocr_auto_run = fields.Boolean(
|
||||
string='Auto-run OCR on attachment',
|
||||
default=False,
|
||||
help="When enabled, OCR runs automatically when a PDF/image is "
|
||||
"attached to a vendor bill.",
|
||||
)
|
||||
Reference in New Issue
Block a user