[MIG] report_xlsx_helper: Migration to 13.0
parent
f33e647a26
commit
24f5984beb
|
@ -14,13 +14,13 @@ Report xlsx helpers
|
|||
: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/12.0/report_xlsx_helper
|
||||
:target: https://github.com/OCA/reporting-engine/tree/13.0-mig-report_xlsx_helper/report_xlsx_helper
|
||||
: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-12-0/reporting-engine-12-0-report_xlsx_helper
|
||||
:target: https://translation.odoo-community.org/projects/reporting-engine-13-0-mig-report_xlsx_helper/reporting-engine-13-0-mig-report_xlsx_helper-report_xlsx_helper
|
||||
:alt: Translate me on Weblate
|
||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||
:target: https://runbot.odoo-community.org/runbot/143/12.0
|
||||
:target: https://runbot.odoo-community.org/runbot/143/13.0-mig-report_xlsx_helper
|
||||
:alt: Try me on Runbot
|
||||
|
||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||
|
@ -35,7 +35,7 @@ This module provides a set of tools to facilitate the creation of excel reports
|
|||
Installation
|
||||
============
|
||||
|
||||
This module requires report_xlsx version 11.0.1.0.3 or higher.
|
||||
This module requires report_xlsx version 13.0.1.0.0 or higher.
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
@ -79,7 +79,7 @@ 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 smashing it by providing a detailed and welcomed
|
||||
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_xlsx_helper%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_xlsx_helper%0Aversion:%2013.0-mig-report_xlsx_helper%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.
|
||||
|
||||
|
@ -95,6 +95,7 @@ Contributors
|
|||
~~~~~~~~~~~~
|
||||
|
||||
* Luc De Meyer <luc.demeyer@noviat.com>
|
||||
* Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
|
||||
|
||||
Maintainers
|
||||
~~~~~~~~~~~
|
||||
|
@ -109,6 +110,6 @@ 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/12.0/report_xlsx_helper>`_ project on GitHub.
|
||||
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/13.0-mig-report_xlsx_helper/report_xlsx_helper>`_ project on GitHub.
|
||||
|
||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
|
||||
{
|
||||
"name": "Report xlsx helpers",
|
||||
"author": "Noviat," "Odoo Community Association (OCA)",
|
||||
"author": "Noviat, Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/reporting-engine",
|
||||
"category": "Reporting",
|
||||
"version": "12.0.1.1.1",
|
||||
"version": "13.0.1.0.0",
|
||||
"license": "AGPL-3",
|
||||
"depends": ["report_xlsx"],
|
||||
"installable": True,
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
* Luc De Meyer <luc.demeyer@noviat.com>
|
||||
* Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
|
||||
|
|
|
@ -1 +1 @@
|
|||
This module requires report_xlsx version 11.0.1.0.3 or higher.
|
||||
This module requires report_xlsx version 13.0.1.0.0 or higher.
|
||||
|
|
|
@ -11,6 +11,7 @@ from odoo import models
|
|||
class TestPartnerXlsx(models.AbstractModel):
|
||||
_name = "report.report_xlsx_helper.test_partner_xlsx"
|
||||
_inherit = "report.report_xlsx.abstract"
|
||||
_description = "Test Partner XLSX Report"
|
||||
|
||||
def _get_ws_params(self, wb, data, partners):
|
||||
|
||||
|
@ -25,16 +26,6 @@ class TestPartnerXlsx(models.AbstractModel):
|
|||
"data": {"value": self._render("len(partner.child_ids)")},
|
||||
"width": 10,
|
||||
},
|
||||
"is_customer": {
|
||||
"header": {"value": "Customer"},
|
||||
"data": {"value": self._render("partner.customer")},
|
||||
"width": 10,
|
||||
},
|
||||
"is_customer_formula": {
|
||||
"header": {"value": "Customer Y/N ?"},
|
||||
"data": {"type": "formula", "value": self._render("customer_formula")},
|
||||
"width": 14,
|
||||
},
|
||||
"date": {
|
||||
"header": {"value": "Date"},
|
||||
"data": {"value": self._render("partner.date")},
|
||||
|
@ -72,17 +63,12 @@ class TestPartnerXlsx(models.AbstractModel):
|
|||
)
|
||||
ws.freeze_panes(row_pos, 0)
|
||||
|
||||
wl = ws_params["wanted_list"]
|
||||
|
||||
for partner in partners:
|
||||
is_customer_pos = "is_customer" in wl and wl.index("is_customer")
|
||||
is_customer_cell = self._rowcol_to_cell(row_pos, is_customer_pos)
|
||||
customer_formula = 'IF({},"Y", "N")'.format(is_customer_cell)
|
||||
row_pos = self._write_line(
|
||||
ws,
|
||||
row_pos,
|
||||
ws_params,
|
||||
col_specs_section="data",
|
||||
render_space={"partner": partner, "customer_formula": customer_formula},
|
||||
render_space={"partner": partner},
|
||||
default_format=self.format_tcell_left,
|
||||
)
|
||||
|
|
|
@ -367,7 +367,7 @@ ul.auto-toc {
|
|||
!! This file is generated by oca-gen-addon-readme !!
|
||||
!! changes will be overwritten. !!
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" 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" href="https://github.com/OCA/reporting-engine/tree/12.0/report_xlsx_helper"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_xlsx_helper"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/143/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" 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" href="https://github.com/OCA/reporting-engine/tree/13.0-mig-report_xlsx_helper/report_xlsx_helper"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/reporting-engine-13-0-mig-report_xlsx_helper/reporting-engine-13-0-mig-report_xlsx_helper-report_xlsx_helper"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/143/13.0-mig-report_xlsx_helper"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module provides a set of tools to facilitate the creation of excel reports with format xlsx.</p>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
<div class="contents local topic" id="contents">
|
||||
|
@ -385,7 +385,7 @@ ul.auto-toc {
|
|||
</div>
|
||||
<div class="section" id="installation">
|
||||
<h1><a class="toc-backref" href="#id1">Installation</a></h1>
|
||||
<p>This module requires report_xlsx version 11.0.1.0.3 or higher.</p>
|
||||
<p>This module requires report_xlsx version 13.0.1.0.0 or higher.</p>
|
||||
</div>
|
||||
<div class="section" id="usage">
|
||||
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
|
||||
|
@ -424,7 +424,7 @@ from <a class="reference external" href="http://apps.odoo.com">http://apps.odoo.
|
|||
<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 smashing it by providing a detailed and welcomed
|
||||
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_xlsx_helper%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_xlsx_helper%0Aversion:%2013.0-mig-report_xlsx_helper%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">
|
||||
|
@ -439,6 +439,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||
<h2><a class="toc-backref" href="#id6">Contributors</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Luc De Meyer <<a class="reference external" href="mailto:luc.demeyer@noviat.com">luc.demeyer@noviat.com</a>></li>
|
||||
<li>Rattapong Chokmasermkul <<a class="reference external" href="mailto:rattapongc@ecosoft.co.th">rattapongc@ecosoft.co.th</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
|
@ -448,7 +449,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||
<p>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.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/12.0/report_xlsx_helper">OCA/reporting-engine</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/13.0-mig-report_xlsx_helper/report_xlsx_helper">OCA/reporting-engine</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue