From f71f8da0a6472163b7591cdacf04cc4c5f68a902 Mon Sep 17 00:00:00 2001 From: Rujia Liu Date: Wed, 14 Apr 2021 12:51:03 +1200 Subject: [PATCH] [FIX] Put flake exception in _get_report_values --- partner_statement/report/report_statement_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/partner_statement/report/report_statement_common.py b/partner_statement/report/report_statement_common.py index 61a29c2d..07ea41b4 100644 --- a/partner_statement/report/report_statement_common.py +++ b/partner_statement/report/report_statement_common.py @@ -1,7 +1,6 @@ # Copyright 2018 ForgeFlow, S.L. (https://www.forgeflow.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -# flake8: noqa: C901: cannot find a simple way to do with the complex of "_get_report_values" from datetime import datetime, timedelta from odoo import _, api, fields, models @@ -290,8 +289,9 @@ class ReportStatementCommon(models.AbstractModel): currencies, ) - @api.model # noqa: C901 + @api.model def _get_report_values(self, docids, data=None): + # flake8: noqa: C901 """ @return: returns a dict of parameters to pass to qweb report. the most important pair is {'data': res} which contains all