diff options
| author | Denis Ledoux <dle@odoo.com> | 2017-12-18 18:23:01 +0100 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2017-12-18 18:23:22 +0100 |
| commit | f3da958fa144ee1b112df166435a54c064a10812 (patch) | |
| tree | a546fee1d6b13a80f92fba0f2d314e0c396c04fe /addons/web/static/src/js/framework | |
| parent | b1b13dbeede54d3473a0b80e6a8dc21bedfdc5c9 (diff) | |
[FIX] product: price computation with dated pricelist rules and tz
Take account of the user timezone to compute the price for
pricelist rules with start / end date.
Before this revision, the date used to compare to
the dated pricelist rule is always the date of today
in UTC.
For instance:
- If a user is in timezone UTC +12
- The 10% discount on the pricelist starts on December 19
- It's currently December 18 13:00
The user did not have the discount,
because it was consdiered December 18,
while the user was already in December 19.
With this revision, we take account of the context
and its timezone to compute the date of today
and return the correct price according to the
dated start and end datetime.
opw-785203
Diffstat (limited to 'addons/web/static/src/js/framework')
0 files changed, 0 insertions, 0 deletions
