Skip to content

Commit

Permalink
[14.0][FIX] account_vat_period_end_statement multicompany non stampa …
Browse files Browse the repository at this point in the history
…le imposte
  • Loading branch information
sergiocorato authored and OCA-git-bot committed Feb 27, 2024
1 parent 3c95af5 commit 13fcf57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions account_vat_period_end_statement/report/vat_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ class VatPeriodEndStatementReport(models.AbstractModel):
@api.model
def _get_report_values(self, docids, data=None):
docs = self.env["account.vat.period.end.statement"].browse(docids)
company = docs.mapped("company_id")[0]

Check warning on line 22 in account_vat_period_end_statement/report/vat_statement.py

View check run for this annotation

Codecov / codecov/patch

account_vat_period_end_statement/report/vat_statement.py#L22

Added line #L22 was not covered by tests
vals = {
"docs": docs,
"time": time,
"tax_amounts": self._get_taxes_amounts,
"account_vat_amounts": self._get_account_vat_amounts,
"tax_amounts": self.with_company(company)._get_taxes_amounts,
"account_vat_amounts": self.with_company(company)._get_account_vat_amounts,
"formatLang": formatLang,
"env": self.env,
}
Expand Down

0 comments on commit 13fcf57

Please sign in to comment.