[MIG] partner_statement: Migration to 13.0

[UPD] Update partner_statement.pot

[UPD] README.rst

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-reporting-13.0/account-financial-reporting-13.0-partner_statement
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-13-0/account-financial-reporting-13-0-partner_statement/
This commit is contained in:
mreficent
2020-02-04 12:26:38 +01:00
committed by Miquel Raïch
parent 24cb1fe10c
commit c6b12f0cea
31 changed files with 444 additions and 526 deletions

View File

@@ -1,5 +1,4 @@
# Copyright 2018 Eficent Business and IT Consulting Services S.L.
# (http://www.eficent.com)
# Copyright 2018 ForgeFlow, S.L. (https://www.forgeflow.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from datetime import datetime, timedelta
@@ -53,7 +52,6 @@ class ReportStatementCommon(models.AbstractModel):
ELSE l.date_maturity
END as date_maturity
FROM account_move_line l
JOIN account_account_type at ON (at.id = l.user_type_id)
JOIN account_move m ON (l.move_id = m.id)
LEFT JOIN (SELECT pr.*
FROM account_partial_reconcile pr
@@ -67,7 +65,8 @@ class ReportStatementCommon(models.AbstractModel):
ON pr.debit_move_id = l2.id
WHERE l2.date <= %(date_end)s
) as pc ON pc.credit_move_id = l.id
WHERE l.partner_id IN %(partners)s AND at.type = %(account_type)s
WHERE l.partner_id IN %(partners)s
AND l.account_internal_type = %(account_type)s
AND (
(pd.id IS NOT NULL AND
pd.max_date <= %(date_end)s) OR
@@ -289,8 +288,8 @@ class ReportStatementCommon(models.AbstractModel):
currencies,
)
@api.multi
def _get_report_values(self, docids, data):
@api.model # noqa: C901
def _get_report_values(self, docids, data=None):
"""
@return: returns a dict of parameters to pass to qweb report.
the most important pair is {'data': res} which contains all