Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 1176 |
Technical Name |
report_excel_tpl |
License | OPL-1 |
Website | http://lazydoo.net |
Versions | 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 1176 |
Technical Name |
report_excel_tpl |
License | OPL-1 |
Website | http://lazydoo.net |
Versions | 17.0 18.0 |
Feature
This module provides a new feature that allows users to generate reports in Excel format.
- Generate Excel reports from Odoo data.
- Support multiple sheets in a single report.
- Support image in the report.
- Support python prepare function.
- Module demo template with examples
- Free support 24/7
Demo
Try out our live demo to see the Report Excel module in action.
Template

Config
Configure the Report Excel module to customize the behavior and appearance of your reports.

Result
View the result of the Report Excel module in the following screenshots.

Installation
Follow our installation guide to install the Report Excel module on your system.
- Install openpyxl: pip install openpyxl
Usage
Learn how to use the Report Excel module to generate reports from your data.
- Manual Configuration
- Step 1: Go to System/Technical/Reports/Excel Template.
- Step 2: Create a new report.
- Step 3: Upload the template file.
- Step 4: (Required) Settings number row/col.
Maintainer
Contact our module maintainer for any questions or support related to the Report Excel module.
This module is maintained by the Lazydoo
Contact Maintainerreport_excel
Introduction
This guide provides instructions on how to use the report_excel. It covers the basic usage examples, and advanced features. ------------ Usage ------------
The Library Name library provides a set of functions that you can use to format fields in your reports. Here are some examples of how to use these functions: 1. Field Date
- Example:
- {{o_date(o.order_date, date_format='full', lang_code='en')}}
- Parameters:
- date_format: one of “full”, “long”, “medium”, or “short”, or a custom date/time pattern
- lang_code: a Locale object or a locale identifier
- Field Datetime
- Example:
- {{o_datetime(o.create_date, date_format='long', tz='UTC', lang_code='en')}}
- Parameters:
- dt_format: one of “full”, “long”, “medium”, or “short”, or a custom date/time pattern
- tz: the timezone to apply to the time for display
- lang_code: a Locale object or a locale identifier
- Field Monetary
- Example:
- {{o_monetary(o.amount_total, currency_obj=o.currency_id, digits=2, no_break_space=True)}}
- Parameters:
- currency_obj: object currency
- digits: default currency_obj.decimal_places (optional)
- no_break_space: default True (optional)
- Field Selection
- Example:
- {{o_selection(o.state, field_name='state')}}
- Parameters:
- field_name: technology field name
- Field Html
- Example:
- {{o_html(o.note)}}
- Field Float
- Example:
- {{o_float(o.amount_total, digits=2)}}
- Parameters:
- digits: number of decimal places to display (optional)
- Field Count
- Example:
- {{o_count(o.order_line)}}
- Parameters:
- None
Advanced Features
When you using type Excel, you can operate normally with fields and for functions like on Jinda2 template.
When you using type Excel (openpyxl) also provides advanced features that you can explore. Here are some examples:
- Function static (static method)
- Example:
- {# static, A1, attr, variant #}.....{# endStatic, A1 #}
- Parameters:
- type: static
- code: locale cell (D6, D7, D8, ...)
- attr: example o.order_line or method of model
- variant: use in loop, example: {{line.name}}
- Function forCol (loop column method)
- Example:
- {#forCol, A1, o_count(o.order_line), line #}{{line[0]}}....{{line[1].name}} {#endCol, A1#}
- Parameters:
- type: forCol
- code: locale cell (D6, D7, D8, ...)
- attr: example o_count(o.order_line) or method of model
- variant: use in loop, example: {{line[1].name}}
- Function forRow (loop row method)
- Example:
- {# forRow, A1, o.order_line, line #} {{line.name }} {# endRow, A1 #}
- Parameters:
- type: forRow
- code: locale cell (D6, D7, D8, ...)
- attr: example o_count(o.order_line) or method of model
- variant: use in loop, example: {{line[1].name}}
- Merge cells
- If you want to merge cells, you only need to add the value "merge_cell" in the cell location.
- If you want to merge columns, you only need to add the value "merge_col" in the cell location.
- If you want to merge rows, you only need to add the value "merge_row" in the cell location.
For more detailed information, refer to the library's documentation.
Conclusion
This guide has provided an overview of the report_excel library and instructions on how to use it. By following these steps, you should be able to integrate the library into your project successfully.
For any further assistance, refer to the library's documentation or reach out to the library's support team.
Author & Maintainer
- This module is maintained by Lazydoo <luuthinh2705@gmail.com>
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module
Report comment
Any abuse of this reporting system will be penalizedỨng dụng hay, thuận tiện báo cáo. Hỗ trợ nhiệt tình, rất cảm ơn.
There are no comments yet!