[IMP] Same currency rate all year long

bzr revid: jco@openerp.com-20130607082903-a5xyvo52b46jtqto
This commit is contained in:
Josse Colpaert
2013-06-07 10:29:03 +02:00
parent 54d89d7266
commit 58fad8bcfb
+8 -2
View File
@@ -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
-