mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
20 lines
582 B
JavaScript
20 lines
582 B
JavaScript
/* Copyright 2024 Tecnativa - Carlos Roca
|
|
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) */
|
|
|
|
import {PivotController} from "@web/views/pivot/pivot_controller";
|
|
import {patch} from "@web/core/utils/patch";
|
|
|
|
patch(PivotController.prototype, {
|
|
/**
|
|
* Add computed_measures to context key to avoid loosing info when saving the
|
|
* filter to favorites.
|
|
*
|
|
* @override
|
|
*/
|
|
getContext() {
|
|
var res = super.getContext(...arguments);
|
|
res.pivot_computed_measures = this.model._computed_measures;
|
|
return res;
|
|
},
|
|
});
|