[16.0][FIX]account_financial_report: missing accounts

This commit is contained in:
Christoph Abenthung
2024-01-22 11:14:26 +01:00
committed by chaule97
parent 2671e21526
commit d2c0d9ccb8
2 changed files with 41 additions and 2 deletions

View File

@@ -76,8 +76,8 @@ class TrialBalanceReportWizard(models.TransientModel):
and self.account_code_to
and self.account_code_to.code.isdigit()
):
start_range = int(self.account_code_from.code)
end_range = int(self.account_code_to.code)
start_range = self.account_code_from.code
end_range = self.account_code_to.code
self.account_ids = self.env["account.account"].search(
[("code", ">=", start_range), ("code", "<=", end_range)]
)