-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] web_pivot_computed_measure: Migration to 16.0
- Loading branch information
1 parent
1ea97cc
commit 8bf89cf
Showing
12 changed files
with
65 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
odoo-test-helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#. Add support to define a style for a computed measure (ex. colored) | ||
#. Use t-model to data-binding instad of jquery selectors | ||
#. Use t-model to data-binding instead of jquery selectors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
web_pivot_computed_measure/static/src/pivot/pivot_controller.esm.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** @odoo-module **/ | ||
/* 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"; | ||
import {DropdownItemCustomMeasure} from "../dropdown_item_custom_measure/dropdown_item_custom_measure.esm"; | ||
|
||
patch(PivotController.prototype, "web_pivot_computed_measure.PivotController", { | ||
/** | ||
* Add computed_measures to context key to avoid loosing info when saving the | ||
* filter to favorites. | ||
* | ||
* @override | ||
*/ | ||
getContext() { | ||
var res = this._super(...arguments); | ||
res.pivot_computed_measures = this.model._computed_measures; | ||
return res; | ||
}, | ||
}); | ||
|
||
PivotController.components = { | ||
...PivotController.components, | ||
DropdownItemCustomMeasure, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
web_pivot_computed_measure/static/src/pivot/pivot_view.esm.js
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters