Odoo18-Base/addons/l10n_sk/models/res_company.py
2025-01-06 10:57:38 +07:00

19 lines
591 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
trade_registry = fields.Char()
income_tax_id = fields.Char(string="Income Tax ID")
class BaseDocumentLayout(models.TransientModel):
_inherit = 'base.document.layout'
account_fiscal_country_id = fields.Many2one(related="company_id.account_fiscal_country_id")
company_registry = fields.Char(related='company_id.company_registry')
income_tax_id = fields.Char(related='company_id.income_tax_id')