From eba134ec188ca198e2827aeb2cc018fc358e067b Mon Sep 17 00:00:00 2001 From: Laurent Smet Date: Wed, 30 Aug 2017 13:08:04 +0200 Subject: [PATCH] [FIX] sale: fix defaults taxes on tests in sale Suppose two ways to install sale: -i account followed by -i sale: account is installed, the execute is done on the chart template and then, sale is installed. In this case, the IrDefault values already exists when sale is loaded. -i sale directly: account and sale are installed, the execute is done on the chart template. The difference is that there is no IrDefault values set on the demo data in sale. The problem is that such behavior can lead to wrong tests. For exemple, having taxes_id/supplier_taxes_id set or not set on product.template during sale tests. --- addons/sale/data/sale_demo.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/sale/data/sale_demo.xml b/addons/sale/data/sale_demo.xml index 50ea6a0c2db..4c2bb8bb8b2 100644 --- a/addons/sale/data/sale_demo.xml +++ b/addons/sale/data/sale_demo.xml @@ -608,6 +608,8 @@ Thanks! + +