diff options
| author | Aaron Bohy <aab@odoo.com> | 2020-08-11 08:36:20 +0000 |
|---|---|---|
| committer | Mathieu Duckerts-Antoine <dam@odoo.com> | 2020-08-12 08:52:20 +0000 |
| commit | 06b8af3212e2debb7e364e0b429ec6c2db5214e8 (patch) | |
| tree | 1eeb97d2fd295df29a845f5ad83f324a9724cae4 /addons/web/static/src/js/views/graph | |
| parent | f3ee2e0cec88495785558dd097e2c567b8364d3a (diff) | |
[REF] web,purchase: SampleServer: mock registry
This commit changes the API of the SampleServer's mock
registry s.t. one can register a mocked version of a method,
whatever the model. The former API required a specific
model to be specified, and only applied on this model.
However, in order to enable the sample data feature on the
cohort view, the 'get_cohort_data' method needs to be
mocked, whatever the concerned model.
One can now register mocked methods for a specific
model only (with key 'model/method') or for every
models (with key 'method').
Task ID: 2282196
Diffstat (limited to 'addons/web/static/src/js/views/graph')
0 files changed, 0 insertions, 0 deletions
