From fcb48b724152db876f6752560cce5a5d875e8f46 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Thu, 8 Mar 2018 18:16:55 +0100 Subject: [PATCH] [FIX] purchase,stock_dropshipping: keep current company currency Changing it is not needed and generated missmatch against existing entries (created by l10n_generic_coa demo data, thus depending on module install order). --- addons/purchase/test/fifo_price.yml | 8 +------- addons/stock_dropshipping/test/lifo_price.yml | 6 ------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/addons/purchase/test/fifo_price.yml b/addons/purchase/test/fifo_price.yml index 7be91bd1e3a..c0658c71eec 100644 --- a/addons/purchase/test/fifo_price.yml +++ b/addons/purchase/test/fifo_price.yml @@ -1,9 +1,3 @@ -- - Set the company currency as EURO for the sake of repeatibility -- - !python {model: res.company}: | - company = self.env.ref('base.main_company') - self.env.cr.execute("UPDATE res_company SET currency_id = %s WHERE id = %s", [self.env.ref("base.EUR").id, company.id]) - Set a product as using fifo price - @@ -369,4 +363,4 @@ original_out_move._fifo_vacuum() outgoing_shipment_fifo_icecream_neg2._fifo_vacuum() assert original_out_move.product_id.stock_value == 12000.0, 'Stock Value should be 12000' - assert original_out_move.product_id.qty_available == 150.0, 'Qty available should be 150' \ No newline at end of file + assert original_out_move.product_id.qty_available == 150.0, 'Qty available should be 150' diff --git a/addons/stock_dropshipping/test/lifo_price.yml b/addons/stock_dropshipping/test/lifo_price.yml index 9c3c5f4154e..bf5459a0495 100644 --- a/addons/stock_dropshipping/test/lifo_price.yml +++ b/addons/stock_dropshipping/test/lifo_price.yml @@ -1,9 +1,3 @@ -- - Set the company currency as EURO for the sake of repeatibility -- - !python {model: res.company, id: base.main_company}: | - self.env.cr.execute("UPDATE res_company SET currency_id = %s WHERE id = %s", [self.env.ref("base.EUR").id, self.id]) - - Set product category removal strategy as LIFO -