diff options
| author | Nans Lefebvre <len@odoo.com> | 2019-09-16 13:43:31 +0000 |
|---|---|---|
| committer | fw-bot <otis@odoo.com> | 2019-09-19 14:05:23 +0000 |
| commit | c92fb90e7b118cb7c82fbc6feaa2d72731713804 (patch) | |
| tree | f9664f4c6ed7bffd9983bf98ff6a76cba8225f99 /addons/web/static/src | |
| parent | eb2885bc79a7efecd7456cb1a0fbaa142e8da83f (diff) | |
[FIX] product: always use UTC to compare pricelist dates
In case where no argument is given to _compute_price_rule, it would default to
context_today().
This gives "today" in function of the context, depending on the user timezone.
In contrast, an explicitly given date would always be UTC.
Furthermore, on the webshop an unlogged user would get the Public User timezone,
and once logged would get its portal user's timezone.
To make everything coherent, we always use UTC.
opw 2054881
closes odoo/odoo#37154
X-original-commit: 35d4a8ccce8f3a34701d231e17a324cbbf5abfab
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions
