diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-03-09 13:43:54 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-03-14 10:48:30 +0100 |
| commit | afe1d20dac1a70a22b4788a246e34dd141cf376f (patch) | |
| tree | 60d23cc32e66bb3cfda7b0a2cf20e6c65f61a7db /addons/website/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js | |
| parent | a395a54a7ca58e4a9db6d1e5d30c412a40f0c2a1 (diff) | |
[FIX] website_sale: cached available pricelists
The result of the method `_get_pl` is cached:
```
@tools.ormcache('uid', 'country_code', 'show_visible', 'website_pl', 'current_pl', 'all_pl')
```
But, the result depends as well on the partner pricelist set
in the partner form (or even the pricelist used correctly in his cart),
and, unfortunately, this value is not among this method parameters.
To force the recompute of the method when the partner pricelist
change, one of the method arguments (mentioned above) must change.
To serve this purpose, another method is created, adding
the partner pricelist and the order pricelist among its
parameter, to force the recomputation of the available pricelists
when there is a change in the partner or order pricelist.
The old method is kept for retro-compatibility purposes,
and basically call the new one without the two last arguments
For information, the pricelist in the cookie is set only when
the user choose a pricelist different than the default one
among the available pricelists.
opw-670898
Diffstat (limited to 'addons/website/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions
