mirror of
https://github.com/bringout/oca-ocb-l10n_europe.git
synced 2026-04-27 18:42:05 +02:00
18 lines
591 B
Python
18 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')
|