diff --git a/l10n_it_fiscalcode/__manifest__.py b/l10n_it_fiscalcode/__manifest__.py index 0c1d67d00dd8..ea9667a50f19 100644 --- a/l10n_it_fiscalcode/__manifest__.py +++ b/l10n_it_fiscalcode/__manifest__.py @@ -6,7 +6,7 @@ { 'name': 'Italian Localization - Fiscal Code', - 'version': '12.0.1.0.0', + 'version': '12.0.1.1.0', 'development_status': 'Production/Stable', 'category': 'Localisation/Italy', 'author': "Link IT s.r.l., " @@ -25,6 +25,7 @@ 'view/fiscalcode_view.xml', 'view/report_invoice_document.xml', 'wizard/compute_fc_view.xml', + 'view/company_view.xml' ], 'installable': True } diff --git a/l10n_it_fiscalcode/model/__init__.py b/l10n_it_fiscalcode/model/__init__.py index 922f7b71c68c..4bf1b3c3e77f 100644 --- a/l10n_it_fiscalcode/model/__init__.py +++ b/l10n_it_fiscalcode/model/__init__.py @@ -2,3 +2,4 @@ from . import res_partner from . import res_city_it_code +from . import res_company diff --git a/l10n_it_fiscalcode/model/res_company.py b/l10n_it_fiscalcode/model/res_company.py new file mode 100644 index 000000000000..6251e3b9cd07 --- /dev/null +++ b/l10n_it_fiscalcode/model/res_company.py @@ -0,0 +1,9 @@ +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import models, fields + + +class ResCompany(models.Model): + _inherit = 'res.company' + fiscalcode = fields.Char( + related='partner_id.fiscalcode', store=True, readonly=False) diff --git a/l10n_it_fiscalcode/view/company_view.xml b/l10n_it_fiscalcode/view/company_view.xml new file mode 100644 index 000000000000..d2146ab97e42 --- /dev/null +++ b/l10n_it_fiscalcode/view/company_view.xml @@ -0,0 +1,13 @@ + + + + view_company_form_fc + res.company + + + + + + + +