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.

207 lines
8.2 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. {
  22. 'name': 'Financial Reports - Webkit',
  23. 'description': """
  24. Financial Reports - Webkit
  25. ==========================
  26. This module adds or replaces 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. - Aged Partner Balance
  33. Main improvements per report:
  34. -----------------------------
  35. The General ledger: details of all entries posted in your books sorted by
  36. account.
  37. * Filter by account is available in the wizard (no need to go to the
  38. Chart of Accounts to do this anymore) or by View account (the report
  39. will display all regular children accounts) i.e. you can select all
  40. P&L accounts.
  41. * The report only prints accounts with moves OR with a non
  42. null balance. No more endless report with empty accounts (field:
  43. display account is hidden)
  44. * initial balance computation on the fly if no open entry posted
  45. * Thanks to a new checkbox in the account form, you will have the
  46. possibility to centralize any account you like. This means you do
  47. not want to see all entries posted under the account VAT on sales;
  48. you will only see aggregated amounts by periods.
  49. * Counterpart account is displayed for each transaction (3 accounts max.)
  50. to ease searching.
  51. * Better ergonomy on the wizard: important information is displayed in
  52. the top part, filters are in the middle, and options are in the
  53. bottom or on a separate tab. There is more specific filtering on
  54. separate tabs. No more unique wizard layout for all financial
  55. reports (we have removed the journal tab for the GL report)
  56. * improved report style
  57. The partner ledger: details of entries relative to payable &
  58. receivable accounts posted in your books sorted by account and
  59. partner.
  60. * Filter by partner now available
  61. * Now you can see Accounts then Partner with subtotals for each
  62. account allowing you to check you data with trial balance and
  63. partner balance for instance. Accounts are ordered in the same way as
  64. in the Chart of account
  65. * Period have been added (date only is not filled in since date can be
  66. outside period)
  67. * Reconciliation code added
  68. * Subtotal by account
  69. * Alphabetical sorting (same as in partner balance)
  70. Open invoice report : other version of the partner ledger showing
  71. unreconciled / partially reconciled entries.
  72. * Possibility to print unreconciled transactions only at any date in
  73. the past (thanks to the new field: `last_rec_date` which computes
  74. the last move line reconciliation date). No more pain to get open
  75. invoices at the last closing date.
  76. * no initial balance computed because the report shows open invoices
  77. from previous years.
  78. The Trial balance: list of accounts with balances
  79. * You can either see the columns: initial balance, debit, credit,
  80. end balance or compare balances over 4 periods of your choice
  81. * You can select the "opening" filter to get the opening trial balance
  82. only
  83. * If you create an extra virtual chart (using consolidated account) of
  84. accounts for your P&L and your balance sheet, you can print your
  85. statutory accounts (with comparison over years for instance)
  86. * If you compare 2 periods, you will get the differences in values and
  87. in percent
  88. The Partner balance: list of account with balances
  89. * Subtotal by account and partner
  90. * Alphabetical sorting (same as in partner balance)
  91. Aged Partner Balance: Summary of aged open amount per partner
  92. This report is an accounting tool helping in various tasks.
  93. You can credit control or partner balance provisions computation for instance.
  94. The aged balance report allows you to print balances per partner
  95. like the trial balance but add an extra information :
  96. * It will split balances into due amounts
  97. (due date not reached à the end date of the report) and overdue amounts
  98. Overdue data are also split by period.
  99. * For each partner following columns will be displayed:
  100. * Total balance (all figures must match with same date partner balance
  101. report).
  102. This column equals the sum of all following columns)
  103. * Due
  104. * Overdue <= 30 days
  105. * Overdue <= 60 days
  106. * Overdue <= 90 days
  107. * Overdue <= 120 days
  108. * Older
  109. Hypothesis / Contraints of aged partner balance
  110. * Overdues columns will be by default be based on 30 days range fix number of
  111. days. This can be changed by changes the RANGES constraint
  112. * All data will be displayed in company currency
  113. * When partial payments, the payment must appear in the same colums than the
  114. invoice (Except if multiple payment terms)
  115. * Data granularity: partner (will not display figures at invoices level)
  116. * The report aggregate data per account with sub-totals
  117. * Initial balance must be calculated the same way that
  118. the partner balance / Ignoring the opening entry
  119. in special period (idem open invoice report)
  120. * Only accounts with internal type payable or receivable are considered
  121. (idem open invoice report)
  122. * If maturity date is null then use move line date
  123. Limitations:
  124. ------------
  125. In order to run properly this module makes sure you have installed the
  126. library `wkhtmltopdf` for the pdf rendering (the library path must be
  127. set in a System Parameter `webkit_path`).
  128. Initial balances in these reports are based either on opening entry
  129. posted in the opening period or computed on the fly. So make sure
  130. that your past accounting opening entries are in an opening period.
  131. Initials balances are not computed when using the Date filter (since a
  132. date can be outside its logical period and the initial balance could
  133. be different when computed by data or by initial balance for the
  134. period). The opening period is assumed to be the Jan. 1st of the year
  135. with an opening flag and the first period of the year must start also
  136. on Jan 1st.
  137. Totals for amounts in currencies are effective if the partner belongs to
  138. an account with a secondary currency.
  139. HTML headers and footers are deactivated for these reports because of
  140. an issue in wkhtmltopdf
  141. (http://code.google.com/p/wkhtmltopdf/issues/detail?id=656) Instead,
  142. the header and footer are created as text with arguments passed to
  143. wkhtmltopdf. The texts are defined inside the report classes.
  144. """,
  145. 'version': '8.0.1.1.0',
  146. 'author': "Camptocamp,Odoo Community Association (OCA)",
  147. 'license': 'AGPL-3',
  148. 'category': 'Finance',
  149. 'website': 'http://www.camptocamp.com',
  150. 'images': [
  151. 'images/ledger.png', ],
  152. 'depends': ['account',
  153. 'report_webkit'],
  154. 'demo': [],
  155. 'data': ['account_view.xml',
  156. 'data/financial_webkit_header.xml',
  157. 'report/report.xml',
  158. 'wizard/wizard.xml',
  159. 'wizard/balance_common_view.xml',
  160. 'wizard/general_ledger_wizard_view.xml',
  161. 'wizard/partners_ledger_wizard_view.xml',
  162. 'wizard/trial_balance_wizard_view.xml',
  163. 'wizard/partner_balance_wizard_view.xml',
  164. 'wizard/open_invoices_wizard_view.xml',
  165. 'wizard/aged_partner_balance_wizard.xml',
  166. 'wizard/print_journal_view.xml',
  167. 'report_menus.xml',
  168. ],
  169. # tests order matter
  170. 'test': ['tests/general_ledger.yml',
  171. 'tests/partner_ledger.yml',
  172. 'tests/trial_balance.yml',
  173. 'tests/partner_balance.yml',
  174. 'tests/open_invoices.yml',
  175. 'tests/aged_trial_balance.yml'],
  176. # 'tests/account_move_line.yml'
  177. 'active': False,
  178. 'installable': True,
  179. 'application': True,
  180. }