diff --git a/addons/l10n_nl/__manifest__.py b/addons/l10n_nl/__manifest__.py index 6a4c7b0ac0e..0ecbd1da93e 100644 --- a/addons/l10n_nl/__manifest__.py +++ b/addons/l10n_nl/__manifest__.py @@ -29,6 +29,7 @@ 'data/account_chart_template_data.xml', 'data/menuitem.xml', 'views/res_partner_views.xml', + 'views/res_company_views.xml', ], 'demo': [ 'demo/demo_company.xml', diff --git a/addons/l10n_nl/models/__init__.py b/addons/l10n_nl/models/__init__.py index c8614475e2f..9820bce9218 100644 --- a/addons/l10n_nl/models/__init__.py +++ b/addons/l10n_nl/models/__init__.py @@ -4,3 +4,4 @@ from . import account_journal from . import account_chart_template from . import res_partner +from . import res_company diff --git a/addons/l10n_nl/models/res_company.py b/addons/l10n_nl/models/res_company.py new file mode 100644 index 00000000000..afbc1f60313 --- /dev/null +++ b/addons/l10n_nl/models/res_company.py @@ -0,0 +1,9 @@ +# coding: utf-8 +from odoo import fields, models + + +class ResCompany(models.Model): + _inherit = 'res.company' + + l10n_nl_kvk = fields.Char(related='partner_id.l10n_nl_kvk', readonly=False) + l10n_nl_oin = fields.Char(related='partner_id.l10n_nl_oin', readonly=False) diff --git a/addons/l10n_nl/views/res_company_views.xml b/addons/l10n_nl/views/res_company_views.xml new file mode 100644 index 00000000000..815bb7a991a --- /dev/null +++ b/addons/l10n_nl/views/res_company_views.xml @@ -0,0 +1,16 @@ + + + + + res.company.form.inherit.l10n.nl + res.company + + + + + + + + + +