[IMP] web: expose pivot variables
This is useful for integration with spreadsheet. closes odoo/odoo#52582 Task-id: 2168016 Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
This commit is contained in:
@@ -511,9 +511,11 @@ var PivotModel = AbstractModel.extend({
|
||||
origins: this.data.origins,
|
||||
rowGroupBys: groupBys.rowGroupBys,
|
||||
selectionGroupBys: this._getSelectionGroupBy(groupBys),
|
||||
modelName: this.modelName
|
||||
};
|
||||
if (!raw && state.hasData) {
|
||||
state.table = this._getTable();
|
||||
state.tree = this.rowGroupTree;
|
||||
}
|
||||
return state;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user