透视表网格化分组, Pivot in Grid Column, Fixed Header and Flat Column
by odooai.cn https://www.odooai.cn$ 63.55
透视表网格化分组 / Pivot Grid Column, Fixed Header & Flat Column
透视表扁平化网格表格,多分组单行显示并冻结表头 / Pivot as flat grid table with frozen header
将 Odoo 原生多层分组透视表转换为扁平网格视图,
多分组字段在同一行中以列形式展示,数据更紧凑直观。
Transform hierarchical pivot rows into a flat grid with inline columns,
making complex data analysis cleaner and more intuitive.
功能概述 / Overview
Odoo 原生透视表的分组行是树状层级结构,多级分组会形成缩进嵌套,不利于横向数据对比。本模块将分组行扁平化为网格列,多分组在同一行内以并列列展示,同时冻结表头使大数据量滚动时表头始终可见,大幅提升数据分析效率。
Odoo's native pivot view uses a tree hierarchy for row groups, with indented nesting that hinders horizontal data comparison. This module flattens group rows into grid columns, displaying multiple group-by fields inline. The sticky header remains fixed during scrolling, significantly improving data analysis efficiency for large datasets.
完整功能列表 / Complete Feature List
-
1. 扁平网格分组 / Flat Grid Grouping
将多行分组转换为扁平网格表格,多个分组字段在同一行中以列形式展示 / Transform pivot group-by columns into a flat grid table, displaying multiple group-by fields inline in a single row -
2. 固定(粘性)表头 / Sticky Header
CSS sticky 定位冻结表头,滚动大数据量透视表时列标题始终可见 / Fixed header that remains visible while scrolling through large pivot datasets -
3. 两种灵活启用模式 / Dual Activation Modes
js_class='section' 创建专用视图,或 options="{'section':1}" 不覆盖现有 js_class 直接启用 / Use js_class='section' for dedicated pivot views, or options="{'section':1}" to enable on any pivot without overriding existing js_class -
4. 智能度量字段优化 / Smart Measure Optimization
自动隐藏配置为 'row' 或 'col' 类型的度量字段,保持透视表整洁 / Automatically hides measure fields configured as 'row' or 'col' type to keep the pivot clean -
5. 扁平导出支持 / Flat Export Support
导出时行分组标签作为独立列,生成标准网格表格,便于 Excel/CSV 二次处理 / Exports pivot data as a simple grid table with group-by labels as columns, ideal for Excel/CSV download -
6. 本地化日期格式 / Locale-Aware Date Formatting
日期分组表头按用户语言环境格式化(日、周、月、季度、年),季度标签 Q1~Q4 支持多语言翻译 / Date and datetime group-by headers are formatted per user locale (day, week, month, quarter, year) with translated quarter labels -
7. 兼容其他透视定制 / Compatible with Other Customizations
options 模式下动态继承现有 Renderer,保留 analytic_pivot 等其他视图定制功能 / Dynamically inherits from the existing Renderer in options mode to preserve other view customizations -
8. 多语言支持 / Multi-Language Support
完整的中英文翻译,适配全球化企业部署 / Complete Chinese and English translation support for global enterprise deployment -
9. 全版本兼容 / Full Version Support
支持 Odoo 19,18,17,16,15,14,13,12 企业版、社区版及 odoo.sh 在线版 / Supports Odoo 19-12 Enterprise, Community and odoo.sh Edition -
10. 代码完全开源 / Full Open Source
基于 LGPL-3 协议开源,代码透明可审计,支持二次开发与定制 / LGPL-3 licensed, transparent and auditable code, supports customization and extension
核心亮点 / Key Highlights
六大核心功能,让透视表分析更高效 / Six core features for more efficient pivot analysis
1. 扁平网格分组 / Flat Grid Grouping
Multi group-by columns inline
将多层分组行转换为扁平网格列,多个分组字段同一行并列展示,数据对比一目了然。
2. 固定表头 / Sticky Header
Header stays visible on scroll
CSS sticky 定位冻结前两行表头,大数据量滚动时列标题始终可见,无需反复回滚确认。
3. 两种启用方式 / Dual Activation
js_class or options mode
支持 js_class='section' 专用视图,或 options="{'section':1}" 不覆盖现有 js_class 直接启用。
4. 扁平数据导出 / Flat Export
Group-by labels as columns
导出时行分组标签作为独立列输出,生成标准网格表格,方便 Excel/CSV 二次处理。
5. 本地化日期格式 / Locale-Aware Dates
Q1-Q4 multilingual
日期分组表头按用户语言环境格式化(日/周/月/季度/年),季度标签 Q1~Q4 支持多语言翻译。
6. 兼容其他定制 / Customization Compatible
Dynamic Renderer inheritance
options 模式下动态继承现有 Renderer,保留 analytic_pivot 等其他视图定制,互不冲突。
通用特性 / General Features
多语言与多公司
Multi-Language & Multi-Company
完整的多语言翻译支持,适配全球化企业部署。原生多公司架构,数据严格隔离。
全版本兼容
Full Version Support
支持 Odoo 19,18,17,16,15,14,13,12,EE/CE/.SH,兼容企业版、社区版及在线 SaaS。
代码完全开源
Full Open Source
基于 LGPL-3 协议开源,代码透明可审计,支持二次开发与定制。
界面截图 / Screenshots
核心功能界面一览 / Key feature screenshots
扁平网格 vs 树状透视 / Flat Grid vs Hierarchical Pivot
左侧为标准 Odoo 多级分组透视表(树状缩进),右侧为启用本模块后的扁平网格视图(多分组并列列展示)。Left: Standard Odoo hierarchical pivot with indented nesting. Right: Flat grid view with multiple group-by fields displayed as inline columns.
冻结表头滚动 / Sticky Header on Scroll
表头固定于顶部,滚动大数据集时列标题始终可见。Header remains fixed at top while scrolling through large datasets.
扁平导出 Excel / Flat Export to Excel
导出时行分组标签作为独立列输出,生成标准网格表格。Group-by labels exported as independent columns, generating a standard grid table.
使用流程 / How It Works
安装模块
Install Module
配置视图
Set js_class or options
添加分组
Add Group By
查看网格
View Flat Grid
支持与依赖模块 / Supported & Dependent Modules
- web / Web 模块(Odoo 核心)
免费关联模块 / Free Related Apps
安装本模块后,以下关联模块可免费下载使用
odooai.cn
专业Odoo服务伙伴-开发实施咨询培训全套解决方案 / Professional Odoo Solutions
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 425 |
| Technical Name |
app_web_superpivot |
| License | OPL-1 |
| Website | https://www.odooai.cn |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module