summaryrefslogtreecommitdiff
path: root/doc/_extensions/autojsdoc/parser/parser.py
diff options
context:
space:
mode:
authorJohan Demaret Rivarola <jde@odoo.com>2019-05-17 13:13:06 +0000
committerChristophe Simonis <chs@odoo.com>2019-06-05 18:18:52 +0200
commit218d5ce6a8229dd37253665c1e6071ea66c01591 (patch)
treee1f8030de9918f16e08e8535643923fa1e1f7578 /doc/_extensions/autojsdoc/parser/parser.py
parent0f9823e21657d177326acfb7a8253393641dafe5 (diff)
[FIX] (website_)sale_coupon: avoid race condition on currency
Creating a new database with only website_sale_coupon installed will make some (website_)sale_coupon tests fail. This is due to a race condition messing with the value of the pricelist product.list0 currency. The tests are failing due to amounts being compared after the USD currency rate of 1.2834 has been applied. Example on a 10% discount: expected: >>> 320 * 0.9 288.0 actual: >>> 320 * 1.2834 * 0.9 369.62 This is due to https://github.com/odoo/odoo/blob/3cf9cfc985950c30c6b76480f77f5ffe53650b24/addons/website_sale/data/demo.xml#L228 overriding the value to USD. The tests should not rely on this. This commit aims to ensure the currency is enforced before each test run. closes #4371 Signed-off-by: Christophe Simonis <chs@odoo.com> X-port/Cherry-pick of odoo/enterprise@c1cc464c44393443ef0ad595809dfd02e5b34577
Diffstat (limited to 'doc/_extensions/autojsdoc/parser/parser.py')
0 files changed, 0 insertions, 0 deletions