diff options
| author | William Henrotin <whe@odoo.com> | 2020-08-25 15:00:33 +0000 |
|---|---|---|
| committer | William Henrotin <whe@odoo.com> | 2020-08-25 15:00:33 +0000 |
| commit | 70c223eebe7edfa26564598c898cb9a8541e349b (patch) | |
| tree | f3ee894a1c61c89adc3b6c49264f659c83c55de5 /addons/mail/static/src/models/messaging_initializer/messaging_initializer.js | |
| parent | c45edd11a048d4822b1ffd5dcebdb63d0e0e8f45 (diff) | |
[FIX] purchase_stock: mock datetime to avoid midnight
The test test_update_date_planned issued starting just before midnight.
a purchase was created at 23:59:59 then the variable `today` was
assigned to 00:00:01. When comparing the activity generated by the test,
taking 23:59:59.today() and 00:00:01.today() gave two different values.
This commit force the test time to 09:00:00.
Task : 2325270
closes odoo/odoo#56527
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
Diffstat (limited to 'addons/mail/static/src/models/messaging_initializer/messaging_initializer.js')
0 files changed, 0 insertions, 0 deletions
