Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX l10n_it_vat_settlement_date with l10n_it_vat_statement_communication: VAT comunication must use statement base amounts #4475

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions l10n_it_vat_settlement_date/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions l10n_it_vat_settlement_date/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
from . import account_move_line
from . import account_tax
from . import account_vat_period_end_statement
from . import comunicazione_liquidazione
10 changes: 10 additions & 0 deletions l10n_it_vat_settlement_date/models/comunicazione_liquidazione.py
Original file line number Diff line number Diff line change
@@ -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
Loading