[FIX] purchase: Procurement rule Buy missing when installing Purchase

When installing Purchase, the procurement rule Buy for My Company, Chicago
was missing.

opw:1835411
This commit is contained in:
Goffin Simon
2018-04-11 14:28:09 +02:00
parent 79447255f4
commit c471ca22be
@@ -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})