Commit Graph

12 Commits (923fb2bc740ca7fb1074b34773e6257b8152e9f9)

Author SHA1 Message Date
Graeme Gellatly 3771ded3f2 [FIX][15.0] partner-statement: Remove need to groupby on amount_currency in Activity Statement
By aggregating before the case statement there is no need to group by amount_currency.

In earlier versions of Odoo this bug only presented in multicurrency transactions as company currency transactions
would have an amount_currency of 0.0 and group by 0.0 just fine.

In later versions of Odoo amount_currency is always set and this causes otherwise identical move lines
that should be summed to display seperately. However, amount_currency was required in groupby because it
was part of a non aggregated case statement with the sum inside.

By reversing the nesting we remove the need to group by amount_currency. This is safe because we already group by
currency_id and aggregates are not evaluated until after group by completes.
2022-04-01 10:21:42 +02:00
Rujia Liu 7ed231555c [MIG] partner_statement: Migration to 14.0 2022-04-01 10:21:41 +02:00
mreficent 594c3c4715 [FIX] partner_statement: consider a multicurrency case
Detected cases where account_partial_reconcile has null currency_id, thus giving falsy amount_currency, and thus making some reconciled invoices appearing in the outstanding. Used _amount_residual of account move lines as reference to fix it.

partner_statement 13.0.1.2.1
2022-04-01 10:21:41 +02:00
Lois Rilo 0e42f185af [13.0][IMP] partner_statement:
* show partner name at the top.
* simplify view logic for `name` and `ref` printing.
* fallback to journal entry `ref` when the journal item has no
  `ref` set.
* little query formatting changes to enhance readability.

[UPD] Update partner_statement.pot

[UPD] README.rst

partner_statement 13.0.1.1.0

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/
2022-04-01 10:21:41 +02:00
mreficent b5ab43e080 [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/
2022-04-01 10:21:41 +02:00
mreficent f6f05524d6 [IMP] partner_statement: black, isort 2022-04-01 10:21:41 +02:00
LGodoo 5b9f16f742 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/
2022-04-01 10:21:41 +02:00
Graeme Gellatly fdabdc21b7 [IMP] Allow to attach from compose wizard
By default we checked for an empty data dict in _get_report_values
however the mail template sends a file type and editor key by default.

We now check if the required company_id is in the dictionary. We also support
supplying force_company in context for setting the company for auto generated
emails.

[UPD] README.rst

[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/
2022-04-01 10:21:41 +02:00
Graeme Gellatly 6a641a37be Lint for Travis 2022-04-01 10:21:41 +02:00
Graeme Gellatly 69946dbb77 [IMP] Activity Statements aggregate Payment Data
Before this change, if a payment was reconciled using the bank statement widget
the move was seperated into many multiples of lines making activity
statements twice as long as necessary.

Now payments are a single line
2022-04-01 10:21:41 +02:00
Jordi Ballester 76c587f68d [FIX] Scope unscoped SQL References 2022-04-01 10:21:41 +02:00
Graeme Gellatly c1e0518e2d Initial Port of customer statements 2022-04-01 10:21:41 +02:00