Commit Graph

161 Commits (8b3c33e3515a85c3028f925a10425218a3aa74b7)

Author SHA1 Message Date
OCA-git-bot 8b3c33e351 [ADD] setup.py 2019-06-13 19:26:07 +00:00
Pedro M. Baeza 7d63e28ab1
Merge pull request #559 from eLBati/12.0-mig-account_financial_report-2
[12.0] mig account_financial_report
2019-06-13 21:25:40 +02:00
eLBati 910d62e8e6 [MIG] account_financial_report: Finalize migration to 12.0
* Move back to CSS and FIX

  NameError: variable @odoo-view-background-color is undefined in - on line 99, column 23:
  98 .o_account_financial_reports_page {
  99     background-color: @odoo-view-background-color;
  100     color: @odoo-main-text-color;

* Porting: parent_left does not exist anymore. Using parent_path + account code to sort report lines

* FIX js error with date object not converted to string while clicking on initial balance amount
  See https://user-images.githubusercontent.com/1033131/58337566-5d525c80-7e46-11e9-913a-3c3e0115fb3e.gif

* IMP style and metadata

* FIX tests about new date format and partner_id computed field of account.move

* FIX errors like

  2019-06-03 16:11:51,406 17857 ERROR dev_12_account_financial_report odoo.sql_db: bad query: b"\nDELETE FROM 'report_vat_report_tax'\nWHERE COALESCE(\n    write_date, create_date, (now() at time zone 'UTC'))::timestamp\n    < ((now() at time zone 'UTC') - interval '3600.0 seconds')\n"
  ERROR: syntax error at or near "'report_vat_report_tax'"
  LINE 2: DELETE FROM 'report_vat_report_tax'
                    ^
* IMP translation template and IMP Italian translation

* Remove useless comments
* Use AsIs to avoid SQL injection
* Use fields.Date methods
* Remove useless data from tests
* Improve comments
* Fix wizard.multi.charts.accounts
* Move _get_partner_ids_domain to abstract wizard
* Refactor default partners in wizard to use recordsets
* Improve js style
2019-06-13 21:13:09 +02:00
Wolfgang Pichler 91361ef042 [MIG] account_financial_report: Migration to 12.0
[IMP] Reformated one query to avoid one sql injection warning message - but no sql injection was possible here
2019-06-13 21:13:09 +02:00
Adrià Gil Sorribes 605f67e055 [11.0][FIX] open Account Move Line view from Aged Partner Balance report 2019-06-13 21:13:09 +02:00
Quentin Groulard a3d628ca7c [FIX] Few fixes to solve warnings:
- _description in account_financial_report_abstract
- _description in vat.report.wizard
- Two fields using same label 'Accounts' in account.group
- Two fields using same label 'Account' in report_journal_ledger_move_line
- Two fields using same label 'Partner' in report_journal_ledger_move_line
- Two fields using same label 'Accounts' in report_trial_balance_account
- Two fields using same label 'Tax' in report_vat_report_taxtag
- Two fields using same label 'Tax' in report_vat_report_tax
- Two fields using same label 'Filter accounts' in general.ledger.report.wizard
2019-06-13 21:13:09 +02:00
Pedro M. Baeza 4214a3ea99 Translated using Weblate (Spanish)
Currently translated at 100.0% (323 of 323 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/es/
2019-06-13 21:13:09 +02:00
Iryna Vushnevska 423b6a2fcd [IMP] account_financial_reports: Several improvements:
* Move to less files to compile variables
* hide contacts on partner
* Add reports to res partner actions
* initialize wizard from context
* initialize wizard by current fiscal year
2019-06-13 21:13:09 +02:00
Lara Baggio 6cf659253b fix check value param self.hierarchy for account grouping 2019-06-13 21:13:09 +02:00
labaggio 2545a665a3 Translated using Weblate (Italian)
Currently translated at 22.3% (72 of 323 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/it/
2019-06-13 21:13:09 +02:00
Pedro M. Baeza 6f415cdf26 Translated using Weblate (Spanish)
Currently translated at 100.0% (323 of 323 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/es/
2019-06-13 21:13:09 +02:00
Jordi Ballester Alomar 3835873f3e account_financial_report: add option to hide parent hierarchy levels 2019-06-13 21:13:09 +02:00
cubells d6154b5eb5 [IMP] account_financial_report: autoajust columns 2019-06-13 21:13:09 +02:00
Thorsten Vocks 05b2abf23d Translated using Weblate (German)
Currently translated at 85.7% (276 of 322 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/de/
2019-06-13 21:13:09 +02:00
OCA Transbot 16c70a9ca3 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/
2019-06-13 21:13:09 +02:00
oca-travis 07f6af15af [UPD] Update account_financial_report.pot 2019-06-13 21:13:09 +02:00
Marta Vázquez Rodríguez 7acb3df797 Translated using Weblate (Spanish)
Currently translated at 100.0% (328 of 328 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/es/
2019-06-13 21:13:09 +02:00
Pedro M. Baeza de76dc9bb2 [FIX] account_financial_report: Incorrect SQL query for cost centers 2019-06-13 21:13:09 +02:00
mreficent e92bc05dee [FIX] account_financial_report: singleton error in aged partner balance report
Solves https://github.com/OCA/account-financial-reporting/issues/513
2019-06-13 21:13:09 +02:00
Jordi Ballester Alomar 4177d2c4a8 [account_financial_report] fix title formatting for all reports 2019-06-13 21:13:09 +02:00
Jordi Ballester Alomar 1a816c7a5c [account_financial_report]
- minor usability fixes for multicompany
- improve performance of general ledger using a new index
2019-06-13 21:13:09 +02:00
Jordi Ballester Alomar de757c881d [FIX] account_financial_report: multicompany+layout behaviour (#498)
* Fix wizards for proper multicompany behaviour.
* Fix layout issue
2019-06-13 21:11:32 +02:00
Jordi Ballester Alomar bc4dcb71d7 add proper titles 2019-06-13 21:11:32 +02:00
mreficent ed1104727c [IMP] account_financial_report: adapt the wizards to multicompany 2019-06-13 21:11:32 +02:00
Jordi Ballester Alomar cf718859e5 Translated using Weblate (Spanish)
Currently translated at 99.7% (311 of 312 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/es/
2019-06-13 21:11:32 +02:00
Sergio Zanchetta e649329200 Translated using Weblate (Italian)
Currently translated at 21.5% (67 of 312 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/it/
2019-06-13 21:11:32 +02:00
Pedro M. Baeza 0fe502cd8e [FIX] account_financial_report: 2 things:
* Fix account group level computation

  Depends was not correct for recomputing when needed + better algorithm

* Make hide details on 0 work properly

  * Passing values to general ledger was stripping some correct records
  * Computed field for hiding lines doesn't have proper dependencies nor is not
    taking into account float currency accuracy
2019-06-13 21:11:10 +02:00
OCA Transbot 6e064e8e85 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2019-06-13 21:10:59 +02:00
Dorin Hongu a6de0fc579 Translated using Weblate (Romanian)
Currently translated at 39.7% (120 of 302 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/ro/
2019-06-13 21:10:59 +02:00
Jordi Ballester Alomar 275d4737dd [FIX+IMP] account_financial_report: new README structure + fixes in usability 2019-06-13 21:10:59 +02:00
Jordi Ballester Alomar 1e9346884e [account_financial_report][IMP] Adds the following:
All reports:
- Rename field to hide accounts at 0 to 'hide_account_at_0'
Trial Balance:
- Add possibility to filter by hierarchy levels
- XLSX format will show the hierarchy levels in bold

General Ledger:
- Add the possibility to filter by analytic tags
- Fixes an error on the default date
Journal Ledger:
- The filter on Journals is now optional. If the user does not choose
a journal, by default it will display all journals.

Aged Partner Balance:
- Fixes an error on the default date
2019-06-13 21:04:41 +02:00
Pedro M. Baeza 6387c1483a Translated using Weblate (Spanish)
Currently translated at 96.4% (291 of 302 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/es/
2019-06-13 21:04:41 +02:00
Abraham Anes 0ca262c609 [FIX] account_financial_report_qweb: Widget date for t-raw date (#483) 2019-06-13 21:04:41 +02:00
OCA Transbot f92ab2e043 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2019-06-13 21:04:41 +02:00
Peter Schubert 12442d799e Translated using Weblate (German)
Currently translated at 74.6% (217 of 291 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/de/
2019-06-13 21:04:41 +02:00
Denis Leemann 0ad0e9545b account_financial_report: set backgroud-color to table 2019-06-13 21:04:41 +02:00
Jordi Ballester Alomar b6f5f0e367 remove account groups if hierarchy = 'none' 2019-06-13 21:04:41 +02:00
Jordi Ballester Alomar 7fa1c1dce0 [account_financial_report] adds the following features to Trial Balance:
- Adds 'Period balance' column
- Renames the option 'Hide accounts at 0'. Means no initial, no debit, credit
  or ending balance for the period.
- Fixes logic to remove lines with 0 activity for the period.
- improve the calculation in the Trial Balance
  of undistributed profits/losses account, and provide a footer note
  to the user explaining why will the ending balances will not be zero, but the
  period's total profit and loss.
- add an extra line for P&L application so that the trial balance zeroes in the
  balance, and total debits = total credits
- refactoring of the unaffected earnings reporting in the general ledger
  and trial balance.
2019-06-13 21:04:41 +02:00
Alessandro Camilli 519730fec9 Translated using Weblate (Italian)
Currently translated at 23.0% (67 of 291 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/it/
2019-06-13 21:03:55 +02:00
Harald Panten 1135ccb53a Translated using Weblate (Spanish)
Currently translated at 100.0% (291 of 291 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/es/
2019-06-13 21:03:55 +02:00
Yung-Wa 31c99bf3bc Translated using Weblate (Dutch)
Currently translated at 83.5% (243 of 291 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/nl/
2019-06-13 21:03:55 +02:00
Jimmy Ramos f866b55b9b Translated using Weblate (Spanish)
Currently translated at 100.0% (291 of 291 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/es/
2019-06-13 21:03:55 +02:00
yaseentai ff33e3d1ea Translated using Weblate (Arabic)
Currently translated at 96.2% (178 of 185 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/ar/
2019-06-13 21:03:55 +02:00
Andrea e0334dc6b9 [FIX] _transient_clean_rows_older_than() WHERE clause 2019-06-13 21:03:55 +02:00
Pedro M. Baeza 507c93ce2f Translated using Weblate (Spanish)
Currently translated at 50.2% (146 of 291 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/es/
2019-06-13 21:03:55 +02:00
Rudolf Schnapka 9c0cf4ed6c Translated using Weblate (German)
Currently translated at 73.9% (215 of 291 strings)

Translation: account-financial-reporting-11.0/account-financial-reporting-11.0-account_financial_report
Translate-URL: https://translation.odoo-community.org/projects/account-financial-reporting-11-0/account-financial-reporting-11-0-account_financial_report/de/
2019-06-13 21:03:55 +02:00
Patrick Tombez da181d4f44 [11.0][IMP] Improve transient models cleaning
When there are a lot of account.move.line (several millions) and print any of
the Qweb reports, that will generate also a lot of transient objects.
As these objects are created with an "insert" query, the cleaning normally
triggered by the count of the records in transient tables is not done, so only
the cleaning based on the age of the records is processed (by default, records
older than 1 hours are deleted), but the cron task is only ran one time per
day. For large setups this can lead to memory errors at that point. This change
prevents the memory error by executing the transient record cleanup for the
report models in this module in SQL.
2019-06-13 21:03:55 +02:00
Eloi Cousinet 8e6a386248 [11][FIX] Replace partner_ids by journal_ids 2019-06-13 21:03:55 +02:00
mpanarin 03c3b41da3 [ADD] 11.0 account_financial_report: add filter by journals
To general ledger
2019-06-13 21:03:55 +02:00
hveficent fc29e9438b move font-family from generic tags 2019-06-13 21:03:34 +02:00