Skip to content

Commit

Permalink
Merge pull request OCA#507 from hbrunn/8.0-create_path_with_company
Browse files Browse the repository at this point in the history
[ADD] create location path with company if possible
  • Loading branch information
StefanRijnhart authored Jun 13, 2016
2 parents 88cc043 + 70d6603 commit b0da369
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/stock/migrations/8.0.1.1/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ def migrate_stock_location(cr, registry):
vals['picking_type_id'] = warehouse.out_type_id.id
else:
vals['picking_type_id'] = warehouse.int_type_id.id
if warehouse and warehouse[0].company_id:
vals['company_id'] = warehouse[0].company_id.id
path_obj.create(cr, uid, vals)


Expand Down

0 comments on commit b0da369

Please sign in to comment.