Skip to content

Commit

Permalink
TA#70584 [14.0][DEL] stock_location_production
Browse files Browse the repository at this point in the history
  • Loading branch information
abenzbiria committed Oct 30, 2024
1 parent f67c6ed commit 9d0442a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project_material/init_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ def post_init_hook(cr, registry):
def _setup_warehouses_consumption_routes(env):
warehouses = env["stock.warehouse"].with_context(company_id=env.company.id).search([])
for warehouse in warehouses:
warehouse._create_or_update_consumption_picking_types()
warehouse._create_or_update_consumption_route()
warehouse.with_context(company_id=env.company.id)._create_or_update_consumption_picking_types()
warehouse.with_context(company_id=env.company.id)._create_or_update_consumption_route()

0 comments on commit 9d0442a

Please sign in to comment.