
from odoo import fields, models


class ResCompany(models.Model):
    _inherit = 'res.company'

    extract_in_invoice_digitalization_mode = fields.Selection([
        ('no_send', "Do not digitize"),
        ('manual_send', "Digitize on demand only"),
        ('auto_send', "Digitize automatically")],
        string="Digitization mode on vendor bills",
        default='auto_send')
    extract_out_invoice_digitalization_mode = fields.Selection([
        ('no_send', "Do not digitize"),
        ('manual_send', "Digitize on demand only"),
        ('auto_send', "Digitize automatically")],
        string="Digitization mode on customer invoices",
        default='manual_send')
    extract_single_line_per_tax = fields.Boolean(string="Single Invoice Line Per Tax", default=True)
