OCA reporting engine fork for dev and update.
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.

32 lines
967 B

  1. In order to create an Excel report you can define a report of type 'xlsx' in a static or dynamic way:
  2. * Static syntax: cf. ``account_move_line_report_xls`` for an example.
  3. * Dynamic syntax: cf. ``report_xlsx_helper_demo`` for an example
  4. The ``AbstractReportXlsx`` class contains a number of attributes and methods to
  5. facilitate the creation excel reports in Odoo.
  6. * Cell types
  7. string, number, boolean, datetime.
  8. * Cell formats
  9. The predefined cell formats result in a consistent
  10. look and feel of the Odoo Excel reports.
  11. * Cell formulas
  12. Cell formulas can be easily added with the help of the ``_rowcol_to_cell()`` method.
  13. * Excel templates
  14. It is possible to define Excel templates which can be adapted
  15. by 'inherited' modules.
  16. Download the ``account_move_line_report_xls`` module
  17. from http://apps.odoo.com as example.
  18. * Excel with multiple sheets
  19. Download the ``account_asset_management_xls`` module
  20. from http://apps.odoo.com as example.