From 58fad8bcfb20852f360e4534b849d4482717d0f7 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Fri, 7 Jun 2013 10:29:03 +0200 Subject: [PATCH] [IMP] Same currency rate all year long bzr revid: jco@openerp.com-20130607082903-a5xyvo52b46jtqto --- addons/purchase/test/fifo_price.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/addons/purchase/test/fifo_price.yml b/addons/purchase/test/fifo_price.yml index 153841918c7..490fd4f5968 100644 --- a/addons/purchase/test/fifo_price.yml +++ b/addons/purchase/test/fifo_price.yml @@ -161,6 +161,13 @@ - !python {model: product.product}: | assert self.browse(cr, uid, ref("product_fifo_icecream")).standard_price == 80.0 +- + We will temporarily change the currency rate on the sixth of June to have the same results all year +- + !record {model: res.currency.rate, id: base.rateUSDbis}: + rate: 1.2834 + currency_id: base.USD + name: !eval time.strftime('%Y-06-06') - Create new pricelist in usd - @@ -230,8 +237,7 @@ - Check rounded price is 102 euro - - !python {model: product.product}: | - assert round(self.browse(cr, uid, ref("product_fifo_icecream")).standard_price) == 102 + assert round(self.browse(cr, uid, ref("product_fifo_icecream")).standard_price) == 102, "Price after doing other currency is wrong" - Do a delivery of an extra 10 kg -