From 5c7b40b83cccb75ea0466700eae7315c28dd2b02 Mon Sep 17 00:00:00 2001 From: Saran Date: Wed, 28 Aug 2019 14:50:14 +0700 Subject: [PATCH] [12.0][FIX] excel_import_export - Style sum footer to number --- excel_import_export/README.rst | 6 ++ excel_import_export/__manifest__.py | 2 +- excel_import_export/models/xlsx_export.py | 1 + excel_import_export/readme/CONTRIBUTORS.rst | 1 + excel_import_export/readme/HISTORY.rst | 5 ++ .../static/description/index.html | 68 +++++++++++-------- 6 files changed, 52 insertions(+), 31 deletions(-) diff --git a/excel_import_export/README.rst b/excel_import_export/README.rst index c2ba1cc3c..02a89ea4f 100644 --- a/excel_import_export/README.rst +++ b/excel_import_export/README.rst @@ -119,6 +119,11 @@ Known issues / Roadmap Changelog ========= +12.0.1.0.4 (2019-08-28) +~~~~~~~~~~~~~~~~~~~~~~~ + +* Fix style sum in footer + 12.0.1.0.3 (2019-08-09) ~~~~~~~~~~~~~~~~~~~~~~~ @@ -161,6 +166,7 @@ Contributors ~~~~~~~~~~~~ * Kitti Upariphutthiphong. (http://ecosoft.co.th) +* Saran Lim. (http://ecosoft.co.th) Maintainers ~~~~~~~~~~~ diff --git a/excel_import_export/__manifest__.py b/excel_import_export/__manifest__.py index 60eb409d4..5a942f070 100644 --- a/excel_import_export/__manifest__.py +++ b/excel_import_export/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Excel Import/Export/Report', 'summary': 'Base module for developing Excel import/export/report', - 'version': '12.0.1.0.2', + 'version': '12.0.1.0.4', 'author': 'Ecosoft,Odoo Community Association (OCA)', 'license': 'AGPL-3', 'website': 'https://github.com/OCA/server-tools/', diff --git a/excel_import_export/models/xlsx_export.py b/excel_import_export/models/xlsx_export.py index 8f45a9ec8..95749b869 100644 --- a/excel_import_export/models/xlsx_export.py +++ b/excel_import_export/models/xlsx_export.py @@ -220,6 +220,7 @@ class XLSXExport(models.AbstractModel): new_row += 1 f_rc = '%s%s' % (col, new_row) st[f_rc] = '=%s(%s:%s)' % (f, rc, new_rc) + co.fill_cell_style(st[f_rc], style, styles) cont_row = cont_row < new_row and new_row or cont_row return diff --git a/excel_import_export/readme/CONTRIBUTORS.rst b/excel_import_export/readme/CONTRIBUTORS.rst index 9c7a518b1..aa87b02dd 100644 --- a/excel_import_export/readme/CONTRIBUTORS.rst +++ b/excel_import_export/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Kitti Upariphutthiphong. (http://ecosoft.co.th) +* Saran Lim. (http://ecosoft.co.th) diff --git a/excel_import_export/readme/HISTORY.rst b/excel_import_export/readme/HISTORY.rst index d54c21cdf..58745034f 100644 --- a/excel_import_export/readme/HISTORY.rst +++ b/excel_import_export/readme/HISTORY.rst @@ -1,3 +1,8 @@ +12.0.1.0.4 (2019-08-28) +~~~~~~~~~~~~~~~~~~~~~~~ + +* Fix style sum in footer + 12.0.1.0.3 (2019-08-09) ~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/excel_import_export/static/description/index.html b/excel_import_export/static/description/index.html index d8439b7e6..b4aaa34b3 100644 --- a/excel_import_export/static/description/index.html +++ b/excel_import_export/static/description/index.html @@ -3,7 +3,7 @@ - + Excel Import/Export/Report