[FIX] partner_statement: avoid showing lines with 0.00001 open amounts
This commit is contained in:
@@ -287,6 +287,9 @@ class ReportStatementCommon(models.AbstractModel):
|
||||
currencies,
|
||||
)
|
||||
|
||||
def _add_currency_line(self, line, currency):
|
||||
return [line]
|
||||
|
||||
@api.model
|
||||
def _get_report_values(self, docids, data=None):
|
||||
# flake8: noqa: C901
|
||||
@@ -396,7 +399,9 @@ class ReportStatementCommon(models.AbstractModel):
|
||||
line["date_maturity"] = format_date(
|
||||
line["date_maturity"], date_formats.get(partner_id, default_fmt)
|
||||
)
|
||||
line_currency["lines"].append(line)
|
||||
line_currency["lines"].extend(
|
||||
self._add_currency_line(line, currencies[line["currency_id"]])
|
||||
)
|
||||
|
||||
if data["show_aging_buckets"]:
|
||||
for line in buckets[partner_id]:
|
||||
|
||||
Reference in New Issue
Block a user