Commit Graph

13 Commits (de5c93669dadd4c0b54b84276bf3ad10c75e9cd3)

Author SHA1 Message Date
Miquel Raïch 51d9c17b2a [IMP] partner_statement: add Detailed Activity report 2022-12-20 16:51:57 +01:00
Graeme Gellatly b635713413 [FIX][14.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.
2021-12-31 12:10:13 +13:00
Rujia Liu 5ee9d646c8 [MIG] partner_statement: Migration to 14.0 2021-11-09 16:57:35 +01:00
mreficent 26c37b017d [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
2021-11-09 16:50:05 +01:00
Lois Rilo 2ad8e03ff3 [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/
2021-11-09 16:50:02 +01:00
mreficent 11ef63f1f6 [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/
2021-11-09 16:49:59 +01:00
mreficent ff50971116 [IMP] partner_statement: black, isort 2021-11-09 16:49:59 +01:00
LGodoo 7a01e6e6ca 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/
2021-11-09 16:49:57 +01:00
Graeme Gellatly ac89a2a500 [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/
2021-11-09 16:49:53 +01:00
Graeme Gellatly 928c1307c4 Lint for Travis 2021-11-09 16:28:15 +01:00
Graeme Gellatly 71ee5615cf [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
2021-11-09 16:28:15 +01:00
Jordi Ballester 0b48384b63 [FIX] Scope unscoped SQL References 2021-11-09 16:28:15 +01:00
Graeme Gellatly a19fb90769 Initial Port of customer statements 2021-11-09 16:28:15 +01:00