from odoo import fields, models


class ResConfigSettings(models.TransientModel):
    _inherit = 'res.config.settings'

    l10n_jo_edi_sequence_income_source = fields.Char(string="JoFotara Sequence of Income Source", related="company_id.l10n_jo_edi_sequence_income_source", readonly=False)
    l10n_jo_edi_secret_key = fields.Char(string="JoFotara Secret Key", related="company_id.l10n_jo_edi_secret_key", readonly=False)
    l10n_jo_edi_client_identifier = fields.Char(string="JoFotara Client ID", related="company_id.l10n_jo_edi_client_identifier", readonly=False)
    l10n_jo_edi_taxpayer_type = fields.Selection(string="JoFotara Taxpayer Type", related="company_id.l10n_jo_edi_taxpayer_type", readonly=False)
    l10n_jo_edi_demo_mode = fields.Boolean(string="JoFotara Demo Mode", related='company_id.l10n_jo_edi_demo_mode', readonly=False)
