Skip to content
Snippets Groups Projects
Commit c471ca22 authored by Goffin Simon's avatar Goffin Simon
Browse files

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

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

opw:1835411
parent 79447255
Branches
Tags
No related merge requests found
......@@ -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})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment