[MIG] partner_statement: Migration to 17.0

This commit is contained in:
ellbristow
2024-06-25 12:22:21 +02:00
committed by Miquel Raïch
parent 3158417c4a
commit fb09ed1ef5
7 changed files with 101 additions and 102 deletions

View File

@@ -4,7 +4,9 @@
from odoo import _, models
from odoo.addons.report_xlsx_helper.report.report_xlsx_format import FORMATS
from odoo.addons.report_xlsx_helper.report.report_xlsx_format import ( # type: ignore
FORMATS,
)
def copy_format(book, fmt):

View File

@@ -4,7 +4,9 @@
from odoo import _, models
from odoo.addons.report_xlsx_helper.report.report_xlsx_format import FORMATS
from odoo.addons.report_xlsx_helper.report.report_xlsx_format import ( # type: ignore
FORMATS,
)
def copy_format(book, fmt):

View File

@@ -203,7 +203,7 @@ class ReportStatementCommon(models.AbstractModel):
def _get_bucket_dates(self, date_end, aging_type):
return getattr(
self, "_get_bucket_dates_%s" % aging_type, self._get_bucket_dates_days
self, f"_get_bucket_dates_{aging_type}", self._get_bucket_dates_days
)(date_end)
def _get_bucket_dates_days(self, date_end):
@@ -262,7 +262,7 @@ class ReportStatementCommon(models.AbstractModel):
def _get_bucket_labels(self, date_end, aging_type):
return getattr(
self, "_get_bucket_labels_%s" % aging_type, self._get_bucket_dates_days
self, f"_get_bucket_labels_{aging_type}", self._get_bucket_dates_days
)(date_end)
def _get_bucket_labels_days(self, date_end):