From 954e150d419050db4342d74d821ef8f6c0d84945 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 8 Dec 2023 07:39:55 +0000 Subject: [PATCH] [BOT] post-merge updates --- README.md | 6 +- report_xlsx/README.rst | 2 +- report_xlsx/static/description/index.html | 962 +++++++++++----------- setup/_metapackage/pyproject.toml | 11 + 4 files changed, 498 insertions(+), 483 deletions(-) create mode 100644 setup/_metapackage/pyproject.toml diff --git a/README.md b/README.md index 3f58b0523..5b5186feb 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,11 @@ TODO: add repo description. [//]: # (addons) -This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools. +Available addons +---------------- +addon | version | maintainers | summary +--- | --- | --- | --- +[report_xlsx](report_xlsx/) | 17.0.1.0.0 | | Base module to create xlsx report [//]: # (end addons) diff --git a/report_xlsx/README.rst b/report_xlsx/README.rst index b390f057e..e49506bd6 100644 --- a/report_xlsx/README.rst +++ b/report_xlsx/README.rst @@ -7,7 +7,7 @@ Base report xlsx !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:7b3079fe8522598fe2663c2ca653d380f864ca43319b7c0be50e6e83df8794a7 + !! source digest: sha256:eac09290cc88cd06dd772db4fc71b344b37f272b627cff3f30aded0eceedd3b1 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png diff --git a/report_xlsx/static/description/index.html b/report_xlsx/static/description/index.html index da5ef5068..f72a685fd 100644 --- a/report_xlsx/static/description/index.html +++ b/report_xlsx/static/description/index.html @@ -1,481 +1,481 @@ - - - - - - -Base report xlsx - - - -
-

Base report xlsx

- - -

Mature License: AGPL-3 OCA/reporting-engine Translate me on Weblate Try me on Runboat

-

This module provides a basic report class to generate xlsx report.

-

Table of contents

- -
-

Installation

-

Make sure you have xlsxwriter Python module installed:

-
-$ pip3 install xlsxwriter
-
-

For testing it is also necessary xlrd Python module installed:

-
-$ pip3 install xlrd
-
-
-
-

Usage

-

An example of XLSX report for partners on a module called -`module_name`:

-

A python class :

-
-from odoo import models
-
-class PartnerXlsx(models.AbstractModel):
-    _name = 'report.module_name.report_name'
-    _inherit = 'report.report_xlsx.abstract'
-
-    def generate_xlsx_report(self, workbook, data, partners):
-        for obj in partners:
-            report_name = obj.name
-            # One sheet by partner
-            sheet = workbook.add_worksheet(report_name[:31])
-            bold = workbook.add_format({'bold': True})
-            sheet.write(0, 0, obj.name, bold)
-
-

To manipulate the workbook and sheet objects, refer to the -documentation of -xlsxwriter.

-

A report XML record :

-
-<report
-    id="partner_xlsx"
-    model="res.partner"
-    string="Print to XLSX"
-    report_type="xlsx"
-    name="module_name.report_name"
-    file="res_partner"
-    attachment_use="False"
-/>
-
-
-
-

Bug Tracker

-

Bugs are tracked on GitHub 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.

-

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

-
-
-

Credits

-
-

Authors

-
    -
  • ACSONE SA/NV
  • -
  • Creu Blanca
  • -
-
-
-

Contributors

- -
-
-

Maintainers

-

This module is maintained by the OCA.

-Odoo Community Association -

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 project on GitHub.

-

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

-
-
-
- - + + + + + + +Base report xlsx + + + +
+

Base report xlsx

+ + +

Mature License: AGPL-3 OCA/reporting-engine Translate me on Weblate Try me on Runboat

+

This module provides a basic report class to generate xlsx report.

+

Table of contents

+ +
+

Installation

+

Make sure you have xlsxwriter Python module installed:

+
+$ pip3 install xlsxwriter
+
+

For testing it is also necessary xlrd Python module installed:

+
+$ pip3 install xlrd
+
+
+
+

Usage

+

An example of XLSX report for partners on a module called +`module_name`:

+

A python class :

+
+from odoo import models
+
+class PartnerXlsx(models.AbstractModel):
+    _name = 'report.module_name.report_name'
+    _inherit = 'report.report_xlsx.abstract'
+
+    def generate_xlsx_report(self, workbook, data, partners):
+        for obj in partners:
+            report_name = obj.name
+            # One sheet by partner
+            sheet = workbook.add_worksheet(report_name[:31])
+            bold = workbook.add_format({'bold': True})
+            sheet.write(0, 0, obj.name, bold)
+
+

To manipulate the workbook and sheet objects, refer to the +documentation of +xlsxwriter.

+

A report XML record :

+
+<report
+    id="partner_xlsx"
+    model="res.partner"
+    string="Print to XLSX"
+    report_type="xlsx"
+    name="module_name.report_name"
+    file="res_partner"
+    attachment_use="False"
+/>
+
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • ACSONE SA/NV
  • +
  • Creu Blanca
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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 project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/setup/_metapackage/pyproject.toml b/setup/_metapackage/pyproject.toml new file mode 100644 index 000000000..496cab0d6 --- /dev/null +++ b/setup/_metapackage/pyproject.toml @@ -0,0 +1,11 @@ +[project] +name = "odoo-addons-oca-reporting-engine" +version = "17.0.20231208.0" +dependencies = [ + "odoo-addon-report_xlsx>=17.0dev,<17.1dev", +] +classifiers=[ + "Programming Language :: Python", + "Framework :: Odoo", + "Framework :: Odoo :: 17.0", +]