From c08a590bb1b8177e505bfca64d14765e58ea0ef4 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 2 Jan 2017 15:07:14 +0100 Subject: [PATCH] [FIX] purchase: correct fifo test Oversight of previous forward-port. --- addons/purchase/test/fifo_price.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/purchase/test/fifo_price.yml b/addons/purchase/test/fifo_price.yml index 0ea720b4e38..29a6fea4e08 100644 --- a/addons/purchase/test/fifo_price.yml +++ b/addons/purchase/test/fifo_price.yml @@ -2,8 +2,8 @@ Set the company currency as EURO for the sake of repeatibility - !python {model: res.company}: | - company = self.browse(cr, uid, ref('base.main_company')) - company.currency_id = company.env['res.currency'].browse(ref('base.EUR')) + company = self.env.ref('base.main_company') + company.currency_id = self.env.ref('base.EUR') - Set a product as using fifo price -