diff --git a/l10n_it_vat_settlement_date/__manifest__.py b/l10n_it_vat_settlement_date/__manifest__.py index d1e97d0f7ea1..1d6c2ff29d47 100644 --- a/l10n_it_vat_settlement_date/__manifest__.py +++ b/l10n_it_vat_settlement_date/__manifest__.py @@ -16,6 +16,7 @@ "account_tax_balance", "account_vat_period_end_statement", "l10n_it_vat_registries", + "l10n_it_vat_statement_communication", ], "data": [ "views/account_move_views.xml", diff --git a/l10n_it_vat_settlement_date/models/__init__.py b/l10n_it_vat_settlement_date/models/__init__.py index df9ba318840b..9fc3334dc943 100644 --- a/l10n_it_vat_settlement_date/models/__init__.py +++ b/l10n_it_vat_settlement_date/models/__init__.py @@ -4,3 +4,4 @@ from . import account_move_line from . import account_tax from . import account_vat_period_end_statement +from . import comunicazione_liquidazione diff --git a/l10n_it_vat_settlement_date/models/comunicazione_liquidazione.py b/l10n_it_vat_settlement_date/models/comunicazione_liquidazione.py new file mode 100644 index 000000000000..c143677669a0 --- /dev/null +++ b/l10n_it_vat_settlement_date/models/comunicazione_liquidazione.py @@ -0,0 +1,10 @@ +from odoo import models + + +class ComunicazioneLiquidazioneVp(models.Model): + _inherit = "comunicazione.liquidazione.vp" + + def _get_tax_context(self, period): + res = super()._get_tax_context(period) + res["use_l10n_it_vat_settlement_date"] = True + return res