From c471ca22befd6c80f82ba1984839e781393e5a8e Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 11 Apr 2018 11:45:03 +0200 Subject: [PATCH] [FIX] purchase: Procurement rule Buy missing when installing Purchase When installing Purchase, the procurement rule Buy for My Company, Chicago was missing. opw:1835411 --- addons/purchase/data/purchase_stock_demo.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/purchase/data/purchase_stock_demo.yml b/addons/purchase/data/purchase_stock_demo.yml index d44d529b39c..9f48cd46647 100644 --- a/addons/purchase/data/purchase_stock_demo.yml +++ b/addons/purchase/data/purchase_stock_demo.yml @@ -6,3 +6,6 @@ warehouse = self.browse(ref('stock.' + wh_ref)) #Force the rewriting of route and rule warehouse.write({'buy_to_resupply': True}) + partner_id = ref('stock.res_partner_company_1') + warehouse = self.search([('partner_id', '=', partner_id)]) + warehouse.write({'buy_to_resupply': True})