From 79d5f5018363e75c0bb4546f5a6fa0b34f0deb63 Mon Sep 17 00:00:00 2001 From: hitrosol Date: Tue, 24 Mar 2026 22:29:51 +0700 Subject: [PATCH 1/2] css sticky table header added on mis-builder reports --- mis_builder/README.rst | 7 +- mis_builder/readme/CONTRIBUTORS.md | 1 + mis_builder/static/description/index.html | 126 ++++++++---------- .../src/components/mis_report_widget.scss | 31 +++++ 4 files changed, 93 insertions(+), 72 deletions(-) diff --git a/mis_builder/README.rst b/mis_builder/README.rst index bd59fab83..599a13426 100644 --- a/mis_builder/README.rst +++ b/mis_builder/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - =========== MIS Builder =========== @@ -17,7 +13,7 @@ MIS Builder .. |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/license-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/licence-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%2Fmis--builder-lightgray.png?logo=github @@ -768,6 +764,7 @@ Contributors - Miquel Pascual - Antoni Marroig - Chau Le +- Panca Putra Pakpahan Maintainers ----------- diff --git a/mis_builder/readme/CONTRIBUTORS.md b/mis_builder/readme/CONTRIBUTORS.md index 7cbc13568..74bf2f790 100644 --- a/mis_builder/readme/CONTRIBUTORS.md +++ b/mis_builder/readme/CONTRIBUTORS.md @@ -28,3 +28,4 @@ - Miquel Pascual \<\> - Antoni Marroig \<\> - Chau Le \<\> +- Panca Putra Pakpahan \<\> diff --git a/mis_builder/static/description/index.html b/mis_builder/static/description/index.html index 339999d3b..c07987209 100644 --- a/mis_builder/static/description/index.html +++ b/mis_builder/static/description/index.html @@ -3,16 +3,15 @@ -README.rst +MIS Builder -
+
+

MIS Builder

- - -Odoo Community Association - -
-

MIS Builder

-

Production/Stable License: AGPL-3 OCA/mis-builder Translate me on Weblate Try me on Runboat

+

Production/Stable License: AGPL-3 OCA/mis-builder Translate me on Weblate Try me on Runboat

This module allows you to build Management Information Systems dashboards. Such style of reports presents KPI in rows and time periods in columns. Reports mainly fetch data from account moves, but can also @@ -446,7 +440,7 @@

MIS Builder

-

Installation

+

Installation

Your preferred way to install addons will work with MIS Builder.

An easy way to install it with all its dependencies is using pip:

-

Usage

+

Usage

To configure this module, you need to:

  • Go to Accounting > Configuration > MIS Reporting > MIS Report @@ -485,7 +479,7 @@

    Usage

-

Development

+

Development

A typical extension is to provide a mechanism to filter reports on analytic dimensions or operational units. To implement this, you can override _get_additional_move_line_filter and _get_additional_filter @@ -495,7 +489,7 @@

Development

different columns to show different analytic accounts.

-

Changelog

+

Changelog

-

18.0.1.7.2 (2025-10-29)

+

18.0.1.7.2 (2025-10-29)

-

Bugfixes

+

Bugfixes

  • Fix computation of currency conversion rates (#737)
  • @@ -515,9 +509,9 @@

    Bugfixes

-

18.0.1.5.0 (2025-10-27)

+

18.0.1.5.0 (2025-10-27)

-

Features

+

Features

  • Introduction of annotations on report cells. Added notes will be pinted when exporting to PDF and Excel. @@ -526,9 +520,9 @@

    Features

-

17.0.1.0.2 (2024-11-11)

+

17.0.1.0.2 (2024-11-11)

-

Features

+

Features

  • Add support for branch companies. (#648)
  • @@ -536,7 +530,7 @@

    Features

-

16.0.5.1.9 (2024-02-09)

+

16.0.5.1.9 (2024-02-09)

Bugfixes

-

16.0.5.1.8 (2024-02-08)

+

16.0.5.1.8 (2024-02-08)

Bugfixes

-

16.0.5.1.0 (2023-04-04)

+

16.0.5.1.0 (2023-04-04)

Features

  • Improve UX by adding the option to edit the pivot date directly on the @@ -561,7 +555,7 @@

    16.0.5.1.0 (2023-04-04)

-

16.0.5.0.0 (2023-04-01)

+

16.0.5.0.0 (2023-04-01)

Features

-

15.0.4.0.5 (2022-07-19)

+

15.0.4.0.5 (2022-07-19)

Bugfixes

-

15.0.4.0.4 (2022-07-19)

+

15.0.4.0.4 (2022-07-19)

Bugfixes

-

15.0.4.0.2 (2022-02-16)

+

15.0.4.0.2 (2022-02-16)

Bugfixes

  • Fix access right issue when clicking the “Save” button on a MIS Report @@ -626,7 +620,7 @@

    15.0.4.0.2 (2022-02-16)

-

14.0.4.0.0 (2022-01-08)

+

14.0.4.0.0 (2022-01-08)

Features

-

14.0.3.6.7 (2021-06-02)

+

14.0.3.6.7 (2021-06-02)

Bugfixes

  • When on a MIS Report Instance, if you wanted to generate a new line of @@ -671,7 +665,7 @@

    14.0.3.6.7 (2021-06-02)

-

14.0.3.6.6 (2021-04-23)

+

14.0.3.6.6 (2021-04-23)

Bugfixes

  • Fix drilldown action name when the account model has been customized. @@ -679,7 +673,7 @@

    14.0.3.6.6 (2021-04-23)

-

14.0.3.6.5 (2021-04-23)

+

14.0.3.6.5 (2021-04-23)

Bugfixes

-

14.0.3.6.4 (2021-04-06)

+

14.0.3.6.4 (2021-04-06)

Features

-

13.0.3.6.3 (2020-08-28)

+

13.0.3.6.3 (2020-08-28)

Bugfixes

  • Having a “Compare columns” added on a KPI with an associated style @@ -717,7 +711,7 @@

    13.0.3.6.3 (2020-08-28)

-

13.0.3.6.2 (2020-04-22)

+

13.0.3.6.2 (2020-04-22)

Bugfixes

  • The “Settings” button is now displayed for users with the “Show full @@ -726,7 +720,7 @@

    13.0.3.6.2 (2020-04-22)

-

13.0.3.6.1 (2020-04-22)

+

13.0.3.6.1 (2020-04-22)

Bugfixes

-

13.0.3.6.0 (2020-03-28)

+

13.0.3.6.0 (2020-03-28)

Features

  • Add column-level filters on analytic account and analytic tags. These @@ -753,11 +747,11 @@

    13.0.3.6.0 (2020-03-28)

-

12.0.3.5.0 (2019-10-26)

+

12.0.3.5.0 (2019-10-26)

Features

  • The account_id field of the model selected in ‘Move lines source’ @@ -797,7 +791,7 @@

    12.0.3.5.0 (2019-10-26)

-

12.0.3.4.0 (2019-07-09)

+

12.0.3.4.0 (2019-07-09)

Features

-

12.0.3.3.0 (2019-01-26)

+

12.0.3.3.0 (2019-01-26)

Features

Dynamic analytic filters in report preview are not yet available in 11, this requires an update to the JS widget that proved difficult to @@ -873,7 +867,7 @@

12.0.3.3.0 (2019-01-26)

analytic_account_id field.

-

11.0.3.2.2 (2018-06-30)

+

11.0.3.2.2 (2018-06-30)

-

11.0.3.2.1 (2018-05-29)

+

11.0.3.2.1 (2018-05-29)

  • [FIX] Missing comparison operator for AccountingNone leading to errors in pbal computations @@ -891,7 +885,7 @@

    11.0.3.2.1 (2018-05-29)

-

10.0.3.2.0 (2018-05-02)

+

10.0.3.2.0 (2018-05-02)

-

11.0.3.1.2 (2018-02-04)

+

11.0.3.1.2 (2018-02-04)

Migration to Odoo 11. No new feature. (#67)

-

10.0.3.1.1 (2017-11-14)

+

10.0.3.1.1 (2017-11-14)

New features:

  • [ADD] month and year relative periods, easier to use than date ranges @@ -949,7 +943,7 @@

    10.0.3.1.1 (2017-11-14)

-

10.0.3.0.4 (2017-10-14)

+

10.0.3.0.4 (2017-10-14)

Bug fix:

-

10.0.3.0.3 (2017-10-03)

+

10.0.3.0.3 (2017-10-03)

Bug fix:

-

10.0.3.0.2 (2017-10-01)

+

10.0.3.0.2 (2017-10-01)

New features:

  • [ADD] Alternative move line source per report column. This makes mis @@ -1010,7 +1004,7 @@

    10.0.3.0.2 (2017-10-01)

-

10.0.2.0.3 (unreleased)

+

10.0.2.0.3 (unreleased)

  • [IMP] more robust behaviour in presence of missing expressions
  • [FIX] indent style
  • @@ -1023,7 +1017,7 @@

    10.0.2.0.3 (unreleased)

-

9.0.2.0.2 (2016-09-27)

+

9.0.2.0.2 (2016-09-27)

  • [IMP] Add refresh button in mis report preview.
  • [IMP] Widget code changes to allow to add fields in the widget more @@ -1031,7 +1025,7 @@

    9.0.2.0.2 (2016-09-27)

-

9.0.2.0.1 (2016-05-26)

+

9.0.2.0.1 (2016-05-26)

  • [IMP] remove unused argument in declare_and_compute_period() for a cleaner API. This is a breaking API changing merged in urgency before @@ -1039,7 +1033,7 @@

    9.0.2.0.1 (2016-05-26)

-

9.0.2.0.0 (2016-05-24)

+

9.0.2.0.0 (2016-05-24)

Part of the work for this release has been done at the Sorrento sprint April 26-29, 2016. The rest (ie a major refactoring) has been done in the weeks after.

@@ -1088,7 +1082,7 @@

9.0.2.0.0 (2016-05-24)

-

8.0.1.0.0 (2016-04-27)

+

8.0.1.0.0 (2016-04-27)

-

8.0.0.2.0

+

8.0.0.2.0

Pre-history. Or rather, you need to look at the git log.

-

Bug Tracker

+

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 @@ -1126,15 +1120,15 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • ACSONE SA/NV
-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

- -Odoo Community Association - +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.

@@ -1184,6 +1177,5 @@

Maintainers

-
diff --git a/mis_builder/static/src/components/mis_report_widget.scss b/mis_builder/static/src/components/mis_report_widget.scss index c8b3a4f7e..915b45176 100644 --- a/mis_builder/static/src/components/mis_report_widget.scss +++ b/mis_builder/static/src/components/mis_report_widget.scss @@ -24,6 +24,37 @@ } } +// Sticky header implementation with higher specificity +.o_list_renderer.o_renderer.table-responsive { + // Remove any overflow that might interfere + overflow: visible !important; +} + +// Sticky header for mis_builder table +.o_list_table.mis_builder { + thead { + tr { + th { + position: sticky !important; + background-color: #f8f9fa !important; + z-index: 100 !important; + border-bottom: 1px solid #dee2e6; + } + } + + // First header row (main period columns) + tr:first-child th { + top: 0 !important; + } + + // Second header row (sub-columns) - stacks below first row + tr:nth-child(2) th { + top: 43px !important; // Adjust based on first row height + border-top: 1px solid #dee2e6; + } + } +} + /* style for the control panel (search box and buttons) */ .oe_mis_builder_report_wide_sheet { From 28fc2358c2ad3dddd670deb0ca38639b90c28c4f Mon Sep 17 00:00:00 2001 From: hitrosol Date: Tue, 7 Apr 2026 21:07:22 +0700 Subject: [PATCH 2/2] use bootstrap variables for colors --- mis_builder/static/src/components/mis_report_widget.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mis_builder/static/src/components/mis_report_widget.scss b/mis_builder/static/src/components/mis_report_widget.scss index 915b45176..0394ca4bf 100644 --- a/mis_builder/static/src/components/mis_report_widget.scss +++ b/mis_builder/static/src/components/mis_report_widget.scss @@ -36,7 +36,7 @@ tr { th { position: sticky !important; - background-color: #f8f9fa !important; + background-color: var(--gray-300); z-index: 100 !important; border-bottom: 1px solid #dee2e6; }