You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
6.5 KiB

  1. # -*- encoding: utf-8 -*-
  2. ##############################################################################
  3. #
  4. # Authors: Nicolas Bessi, Guewen Baconnier
  5. # Copyright Camptocamp SA 2011
  6. #
  7. # This program is free software: you can redistribute it and/or modify
  8. # it under the terms of the GNU Affero General Public License as
  9. # published by the Free Software Foundation, either version 3 of the
  10. # License, or (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU Affero General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Affero General Public License
  18. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. #
  20. ##############################################################################
  21. # TODO refactor helper in order to act more like mixin
  22. # By using properties we will have a more simple signature in fuctions
  23. {
  24. 'name': 'Webkit based extended report financial report',
  25. 'description': """
  26. This module replace the following standard openerp financial reports :
  27. - General ledger
  28. - Trial Balance (simple or comparative view)
  29. - Partner ledger
  30. - Partner balance
  31. - Open invoices report
  32. Main improvements per report:
  33. * The General ledger: details of all entries posted in your books sorted by account.
  34. - Filter by account in the wizard (no need to go to the Chart of account to do this anymore)
  35. or by view account (the report will display all regular children account) ie: you can select all P&L accounts.
  36. - The report will now print only account with movements OR with a balance not null. No more endless
  37. report with accounts with no data. (field: display account is hidden)
  38. - initial balance calculation on the fly if no open entry posted
  39. - Thanks to a new checkbox in account form, you will have possibility to centralize any accounts you like.
  40. Ie: you do not want to see all entries posted under the account VAT on sales; you will only see aggregated amounts by periods.
  41. - Counterpart account displayed for each transaction (3 accounts max.) to ease searching.
  42. - Better ergonomy on the wizard: important information at the top, filters in the middle, options
  43. at the bottom or separate tab, more specific filtering on a other tabs. No more unique wizard layout
  44. for all financial reports (ie: we have removed the journal tab for the GL report)
  45. - improved report style
  46. * The partner ledger: details of entries relative to payable & receivable accounts posted in your books sorted by account and partner.
  47. - Filter by partner now possible
  48. - Now you can see accounts then Partner with subtotals for each account allowing you to check you data
  49. with trial balance and partner balance for instance & accounts are ordered the same way than in the Chart of account
  50. - period have been added (date only is uncompleted since date can be outside period)
  51. - Reconciliation code added
  52. - subtotal by account
  53. - alpha sorting (same in partner balance)
  54. * Open invoice report : other version of the partner ledger showing unreconciled / partially reconcies entries
  55. (added on the 20/01/2012)
  56. - Possibility to print unreconciled transactions only at any date in the past (thanks to the brand-new field:
  57. last_rec_date which calculated the last move line reconciled date). No more pain to get open invoices at the last closing date.
  58. - no initial balance calculated because the report shows open invoices from previous years.
  59. * The Trial balance: list of account with balances
  60. - you can either see the column : Initial balance , debit, credit , end balance or compare balances over 4 periods of your choice
  61. - You can select the filter opening to get the opening trial balance only
  62. - If you create a extra virtual charts (using consolidated account) of account for your P&L and your balance sheet,
  63. you can print your statutory accounts (with comparision over years for ex.)
  64. - If you compare 2 periods, you will get differences in value and % also
  65. * The Partner balance: list of account with balances
  66. - subtotal by account & partner
  67. - alpha sorting (same in partner balance)
  68. Limitations:
  69. In order to run properly this module make sure you have installed the librairie wkhtmltopdf
  70. for the pdf rendering (this library path must be added to you company settings).
  71. Initial balances in these reports are based either on opening entry
  72. posted in the opening period or calculated on the fly. So make sure,
  73. your past accounting opening entries are in a opening period.
  74. Initials balances are not calculated when using date filter (since a
  75. date can be outside its logical period and IB could be different by
  76. date Vs IB by period) The opening period is assumed to be the 01.01 of
  77. the year with an opening flag and the first period of the year must
  78. starts also the 01.01
  79. Totals for amount in currencies are affective if the partner belong to
  80. an account with a secondary currency.
  81. html headers and footers are deactivated for these reports because of
  82. an issue of wkhtmltopdf :
  83. http://code.google.com/p/wkhtmltopdf/issues/detail?id=656 Instead, the
  84. header and footer are created as text with arguments passed to
  85. wkhtmltopdf. The texts are defined inside the report classes.
  86. """,
  87. 'version': '1.0',
  88. 'author': 'Camptocamp',
  89. 'category': 'Finance',
  90. 'website': 'http://www.camptocamp.com',
  91. 'images': [
  92. 'images/ledger.png',],
  93. 'depends': ['account',
  94. 'report_webkit'],
  95. 'init_xml': [],
  96. 'demo_xml' : [],
  97. 'update_xml': ['account_view.xml',
  98. 'account_move_line_view.xml',
  99. 'data/financial_webkit_header.xml',
  100. 'report/report.xml',
  101. 'wizard/wizard.xml',
  102. 'wizard/balance_common_view.xml',
  103. 'wizard/general_ledger_wizard_view.xml',
  104. 'wizard/partners_ledger_wizard_view.xml',
  105. 'wizard/trial_balance_wizard_view.xml',
  106. 'wizard/partner_balance_wizard_view.xml',
  107. 'wizard/open_invoices_wizard_view.xml',
  108. 'report_menus.xml',
  109. # 'wizard/profit_loss_wizard_view.xml',
  110. ],
  111. # tests order matter
  112. 'test': ['tests/general_ledger.yml',
  113. 'tests/partner_ledger.yml',
  114. 'tests/trial_balance.yml',
  115. 'tests/partner_balance.yml',
  116. 'tests/open_invoices.yml',],
  117. #'tests/account_move_line.yml'
  118. 'active': False,
  119. 'installable': True,
  120. }