Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
652ff54
[ADD] report_text_format_option
AungKoKoLin1997 May 28, 2024
d3e4796
[UPD] Update report_text_format_option.pot
Jun 6, 2024
73ca867
[BOT] post-merge updates
OCA-git-bot Jun 6, 2024
b6a38e0
Added translation using Weblate (Italian)
mymage Jun 7, 2024
7986cf8
Translated using Weblate (Italian)
mymage Jun 7, 2024
c1a49ee
[IMP] report_text_format_option: pre-commit auto fixes
edescalona Sep 1, 2025
c349f9f
[MIG] report_text_format_option: Migration to 17.0
edescalona Sep 1, 2025
0d51531
[UPD] Update report_text_format_option.pot
Sep 10, 2025
8afe8b9
[BOT] post-merge updates
OCA-git-bot Sep 10, 2025
e8e4155
[MIG] report_text_format_option: Migration to 18.0
AungKoKoLin1997 Nov 19, 2025
1537f0c
[FIX] report_csv: add None check for docids in _render_csv
deeniiz Jan 9, 2026
c64b9a4
[ADD][13.0] new module report_layout_config
Tonow-c2c Aug 18, 2020
3f7be3e
[ADD] icon.png
OCA-git-bot Aug 18, 2020
7b0982f
Apply dotfiles
sbidoul Jul 27, 2021
4963bb0
report_layout_config 13.0.1.0.1
OCA-git-bot Jul 27, 2021
85d6ca9
[14.0][MIG] report_layout_config
i-vyshnevska Dec 30, 2021
2a7f03d
[14.0][IMP] add layout for clean template
i-vyshnevska Dec 30, 2021
93a1e2e
[IMP] pre-commit lint
HviorForgeFlow Nov 7, 2023
231f31c
Added translation using Weblate (Spanish)
Ivorra78 Mar 27, 2024
abec955
Translated using Weblate (Spanish)
Ivorra78 Mar 27, 2024
5ea3d00
[IMP] report_layout_config: pre-commit auto fixes
May 17, 2024
c9e7ec5
[MIG] report_layout_config: Migration to 17.0
May 17, 2024
69fcdfb
[UPD] Update report_layout_config.pot
Jun 17, 2024
622f9c7
[BOT] post-merge updates
OCA-git-bot Jun 17, 2024
5bf08bc
Update translation files
weblate Jun 17, 2024
14fc236
Added translation using Weblate (Italian)
mymage Jun 18, 2024
33e7eeb
Translated using Weblate (Italian)
mymage Jun 18, 2024
ec9cea1
[IMP] report_layout_config: pre-commit auto fixes
weinni2000 Jan 26, 2026
29eb5e1
[MIG] report_layout_config: Migration to 18.0
weinni2000 Jan 26, 2026
5167197
[FIX] self is model cls here - must use report_sudo for encoding and …
wpichler Mar 9, 2026
667adc8
Merge PR #1096 into 18.0
OCA-git-bot Mar 20, 2026
1ac296f
[UPD] Update report_pdf_form.pot
Mar 20, 2026
f2e2180
[UPD] Update report_text_format_option.pot
Mar 20, 2026
587d288
[BOT] post-merge updates
OCA-git-bot Mar 20, 2026
33089fd
Merge PR #1117 into 18.0
OCA-git-bot Mar 20, 2026
a1f9c9c
[BOT] post-merge updates
OCA-git-bot Mar 20, 2026
e7972a8
Merge PR #1123 into 18.0
OCA-git-bot Mar 20, 2026
02c6144
[UPD] Update report_layout_config.pot
Mar 20, 2026
cb19222
[BOT] post-merge updates
OCA-git-bot Mar 20, 2026
9fdd865
Update translation files
weblate Mar 20, 2026
32fe778
Merge PR #1143 into 18.0
OCA-git-bot Mar 20, 2026
ed65492
[BOT] post-merge updates
OCA-git-bot Mar 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ addon | version | maintainers | summary
[bi_sql_editor](bi_sql_editor/) | 18.0.1.0.4 | <a href='https://github.com/legalsylvain'><img src='https://github.com/legalsylvain.png' width='32' height='32' style='border-radius:50%;' alt='legalsylvain'/></a> | BI Views builder, based on Materialized or Normal SQL Views
[pdf_xml_attachment](pdf_xml_attachment/) | 18.0.1.0.0 | <a href='https://github.com/simahawk'><img src='https://github.com/simahawk.png' width='32' height='32' style='border-radius:50%;' alt='simahawk'/></a> <a href='https://github.com/alexis-via'><img src='https://github.com/alexis-via.png' width='32' height='32' style='border-radius:50%;' alt='alexis-via'/></a> | Provides helpers to work w/ PDFs and XML attachments
[report_context](report_context/) | 18.0.1.0.0 | | Adding context to reports
[report_csv](report_csv/) | 18.0.1.0.0 | | Base module to create csv report
[report_csv](report_csv/) | 18.0.1.0.2 | | Base module to create csv report
[report_display_name_in_footer](report_display_name_in_footer/) | 18.0.1.0.0 | <a href='https://github.com/Shide'><img src='https://github.com/Shide.png' width='32' height='32' style='border-radius:50%;' alt='Shide'/></a> <a href='https://github.com/rafaelbn'><img src='https://github.com/rafaelbn.png' width='32' height='32' style='border-radius:50%;' alt='rafaelbn'/></a> | Show document name in report footer
[report_footer_html](report_footer_html/) | 18.0.1.0.0 | <a href='https://github.com/Shide'><img src='https://github.com/Shide.png' width='32' height='32' style='border-radius:50%;' alt='Shide'/></a> <a href='https://github.com/rafaelbn'><img src='https://github.com/rafaelbn.png' width='32' height='32' style='border-radius:50%;' alt='rafaelbn'/></a> | Show HTML content in desired Footer Reports
[report_layout_config](report_layout_config/) | 18.0.1.0.0 | | Add possibility to easily modify the global report layout
[report_partner_address](report_partner_address/) | 18.0.1.0.0 | <a href='https://github.com/yostashiro'><img src='https://github.com/yostashiro.png' width='32' height='32' style='border-radius:50%;' alt='yostashiro'/></a> <a href='https://github.com/aungkokolin1997'><img src='https://github.com/aungkokolin1997.png' width='32' height='32' style='border-radius:50%;' alt='aungkokolin1997'/></a> | Translatable partner address details for reports and portal
[report_pdf_form](report_pdf_form/) | 18.0.1.0.0 | <a href='https://github.com/grindtildeath'><img src='https://github.com/grindtildeath.png' width='32' height='32' style='border-radius:50%;' alt='grindtildeath'/></a> | Fill custom PDF form reports
[report_pdf_zip_download](report_pdf_zip_download/) | 18.0.1.0.0 | | Report PDF ZIP Download
Expand All @@ -41,6 +42,7 @@ addon | version | maintainers | summary
[report_qweb_pdf_cover](report_qweb_pdf_cover/) | 18.0.1.0.0 | | Add front and back covers to your QWeb PDF reports
[report_qweb_pdf_watermark](report_qweb_pdf_watermark/) | 18.0.1.0.1 | <a href='https://github.com/hbrunn'><img src='https://github.com/hbrunn.png' width='32' height='32' style='border-radius:50%;' alt='hbrunn'/></a> | Add watermarks to your QWEB PDF reports
[report_substitute](report_substitute/) | 18.0.1.0.0 | <a href='https://github.com/sbejaoui'><img src='https://github.com/sbejaoui.png' width='32' height='32' style='border-radius:50%;' alt='sbejaoui'/></a> | This module allows to create substitution rules for report actions.
[report_text_format_option](report_text_format_option/) | 18.0.1.0.0 | <a href='https://github.com/yostashiro'><img src='https://github.com/yostashiro.png' width='32' height='32' style='border-radius:50%;' alt='yostashiro'/></a> <a href='https://github.com/aungkokolin1997'><img src='https://github.com/aungkokolin1997.png' width='32' height='32' style='border-radius:50%;' alt='aungkokolin1997'/></a> | Report Text Format Option
[report_wkhtmltopdf_param](report_wkhtmltopdf_param/) | 18.0.1.0.1 | | Add new parameters for a paper format to be used by wkhtmltopdf command as arguments.
[report_xlsx](report_xlsx/) | 18.0.1.1.2 | | Base module to create xlsx report
[report_xlsx_helper](report_xlsx_helper/) | 18.0.1.0.0 | | Report xlsx helpers
Expand Down
12 changes: 10 additions & 2 deletions report_csv/README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===============
Base report csv
===============
Expand All @@ -7,13 +11,13 @@ Base report csv
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:380b9dc8c98a77b37a8e5e5846b3ddc471dcbf470c9805cc5f9a04f2e4913f12
!! source digest: sha256:bc658cd69105f9a3c0e300b2c63a034ed67aa439a5b6b6b05c3155e092a4ac5c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
Expand Down Expand Up @@ -128,6 +132,10 @@ Contributors

- Aung Ko Ko Lin

- `NuoBiT <https://www.nuobit.com>`__:

- Deniz Gallo [email protected]

Maintainers
-----------

Expand Down
2 changes: 1 addition & 1 deletion report_csv/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"author": "Creu Blanca, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/reporting-engine",
"category": "Reporting",
"version": "18.0.1.0.0",
"version": "18.0.1.0.2",
"license": "AGPL-3",
"depends": ["base", "web"],
"demo": ["demo/report.xml"],
Expand Down
10 changes: 5 additions & 5 deletions report_csv/models/ir_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ def _render_csv(self, report_ref, docids, data):
report_sudo = self._get_report(report_ref)
report_model_name = f"report.{report_sudo.report_name}"
report_model = self.env[report_model_name]
res_id = len(docids) == 1 and docids[0]
res_id = docids and len(docids) == 1 and docids[0]
if not res_id or not report_sudo.attachment or not report_sudo.attachment_use:
return report_model.with_context(
**{
"active_model": report_sudo.model,
"encoding": self.encoding,
"encode_error_handling": self.encode_error_handling,
"encoding": report_sudo.encoding,
"encode_error_handling": report_sudo.encode_error_handling,
}
).create_csv_report(docids, data)
record = self.env[report_sudo.model].browse(res_id)
Expand All @@ -71,8 +71,8 @@ def _render_csv(self, report_ref, docids, data):
data, ext = report_model.with_context(
**{
"active_model": report_sudo.model,
"encoding": self.encoding,
"encode_error_handling": self.encode_error_handling,
"encoding": report_sudo.encoding,
"encode_error_handling": report_sudo.encode_error_handling,
}
).create_csv_report(docids, data)
report_sudo._create_csv_attachment(record, data)
Expand Down
2 changes: 2 additions & 0 deletions report_csv/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
- Rattapong Chokmasermkul \<<[email protected]>\>
- [Quartile](https://www.quartile.co):
- Aung Ko Ko Lin
- [NuoBiT](https://www.nuobit.com):
- Deniz Gallo <[email protected]>
34 changes: 22 additions & 12 deletions report_csv/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Base report csv</title>
<title>README.rst</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -360,16 +360,21 @@
</style>
</head>
<body>
<div class="document" id="base-report-csv">
<h1 class="title">Base report csv</h1>
<div class="document">


<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
</a>
<div class="section" id="base-report-csv">
<h1>Base report csv</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:380b9dc8c98a77b37a8e5e5846b3ddc471dcbf470c9805cc5f9a04f2e4913f12
!! source digest: sha256:bc658cd69105f9a3c0e300b2c63a034ed67aa439a5b6b6b05c3155e092a4ac5c
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/18.0/report_csv"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_csv"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/18.0/report_csv"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_csv"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module provides a basic report class to generate csv report.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand All @@ -386,7 +391,7 @@ <h1 class="title">Base report csv</h1>
</ul>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
<h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
<p>In case the exported CSV report should be encoded in another system than
UTF-8, following fields of the report record (<em>Settings &gt; Technical &gt;
Reports</em>) should be populated accordingly.</p>
Expand All @@ -404,7 +409,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
</ul>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
<p>An example of CSV report for partners on a module called
`module_name`:</p>
<p>A python class :</p>
Expand Down Expand Up @@ -446,23 +451,23 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
<p>Update encoding with an appropriate value (e.g. cp932) as necessary.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_csv%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
<ul class="simple">
<li>Creu Blanca</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
<ul class="simple">
<li>Enric Tobella &lt;<a class="reference external" href="mailto:etobella&#64;creublanca.es">etobella&#64;creublanca.es</a>&gt;</li>
<li>Jaime Arroyo &lt;<a class="reference external" href="mailto:jaime.arroyo&#64;creublanca.es">jaime.arroyo&#64;creublanca.es</a>&gt;</li>
Expand All @@ -471,10 +476,14 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<li>Aung Ko Ko Lin</li>
</ul>
</li>
<li><a class="reference external" href="https://www.nuobit.com">NuoBiT</a>:<ul>
<li>Deniz Gallo <a class="reference external" href="mailto:dgallo&#64;nuobit.com">dgallo&#64;nuobit.com</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
Expand All @@ -487,5 +496,6 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
</div>
</div>
</div>
</div>
</body>
</html>
92 changes: 92 additions & 0 deletions report_layout_config/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===========================
Report layout configuration
===========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:f1064f4ab436ff220954da0d47e14964791f2f0a8f1ffed8ea9761d75d2f01f6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
:target: https://github.com/OCA/reporting-engine/tree/18.0/report_layout_config
:alt: OCA/reporting-engine
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_layout_config
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module provides new report template with possibility to add image
to replace header and footer.

**Table of contents**

.. contents::
:local:

Usage
=====

- In Setting/General Setting/Document Layout:

- Click on Configure Document Layout
- On the wizard choose Layout images
- Set the Full header image + Full footer image

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_layout_config%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Camptocamp

Contributors
------------

- Thomas Nowicki <[email protected]>
- Iryna Vyshnevska <[email protected]>
- Do Anh Duy <[email protected]>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/18.0/report_layout_config>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions report_layout_config/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
25 changes: 25 additions & 0 deletions report_layout_config/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2020 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Report layout configuration",
"summary": "Add possibility to easily modify the global report layout",
"version": "18.0.1.0.0",
"category": "Reporting",
"website": "https://github.com/OCA/reporting-engine",
"author": "Camptocamp, " "Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["web", "base"],
"data": [
"views/document_layout.xml",
"templates/report_templates.xml",
"data/report_layout.xml",
],
"assets": {
"web.report_assets_common": [
"/report_layout_config/static/src/scss/style.scss",
],
},
"application": False,
"installable": True,
}
26 changes: 26 additions & 0 deletions report_layout_config/data/report_layout.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="external_layout_images_standard" model="report.layout">
<field name="name">Layout images standard</field>
<field
name="view_id"
ref="report_layout_config.external_standard_layout_images_template"
/>
<field
name="image"
>/report_layout_config/static/img/preview_standard.png</field>
<field name="pdf">/report_layout_config/static/pdf/preview_standard.pdf</field>
</record>

<record id="external_layout_images_clean" model="report.layout">
<field name="name">Layout images clean</field>
<field
name="view_id"
ref="report_layout_config.external_clean_layout_images_template"
/>
<field
name="image"
>/report_layout_config/static/img/preview_standard.png</field>
<field name="pdf">/report_layout_config/static/pdf/preview_standard.pdf</field>
</record>
</odoo>
Loading
Loading