Skip to content

Commit

Permalink
Merge pull request #98 from lepistone/keep-propagated-owner
Browse files Browse the repository at this point in the history
do not discard the owner in chained move
  • Loading branch information
guewen committed Jan 22, 2015
2 parents 08b82aa + b1dfc27 commit 5fecd6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sale_owner_stock_sourcing/model/procurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ def _run_move_create(self, procurement):
"""
res = super(Procurement, self)._run_move_create(procurement)
res['restrict_partner_id'] = procurement.sale_line_id.stock_owner_id.id
sale_line = procurement.sale_line_id
if sale_line:
res['restrict_partner_id'] = sale_line.stock_owner_id.id
return res

0 comments on commit 5fecd6a

Please sign in to comment.