Display only posted entries (#648)

* Add files via upload

Display only posted entries

* Update activity_statement.py

* Update report_statement_common.py

[UPD] Update partner_statement.pot

Update translation files

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

Translation: account-financial-reporting-12.0/account-financial-reporting-12.0-partner_statement
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-12-0/account-financial-reporting-12-0-partner_statement/
This commit is contained in:
LGodoo
2020-02-04 14:28:25 +02:00
committed by Miquel Raïch
parent 5e60bc0149
commit 588a2b54a7
15 changed files with 190 additions and 173 deletions

View File

@@ -28,6 +28,7 @@ class ActivityStatement(models.AbstractModel):
JOIN account_move m ON (l.move_id = m.id)
WHERE l.partner_id IN %(partners)s AND at.type = %(account_type)s
AND l.date < %(date_start)s AND not l.blocked
AND m.state IN ('posted')
GROUP BY l.partner_id, l.currency_id, l.amount_currency,
l.company_id
""", locals()), "utf-8")
@@ -90,6 +91,7 @@ class ActivityStatement(models.AbstractModel):
AND at.type = %(account_type)s
AND %(date_start)s <= l.date
AND l.date <= %(date_end)s
AND m.state IN ('posted')
GROUP BY l.partner_id, m.name, l.date, l.date_maturity,
CASE WHEN (aj.type IN ('sale', 'purchase'))
THEN l.name