Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
[FIX] Recreate pickings doesn't show View Delivery Orders button
Browse files Browse the repository at this point in the history
* Fix OCA#264
* Fix : Can't create delivery from shipping exception
  • Loading branch information
Kinner Vachhani committed Mar 11, 2016
1 parent d576911 commit ff150f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sale_procurement_group_by_line/model/sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ def action_ship_create(self, cr, uid, ids, context=None):
groups = {}

for line in order.order_line:
if order.state == 'shipping_except':
group_id = getattr(line.procurement_group_id, 'id')
groups[line._get_procurement_group_key()] = \
line.procurement_group_id.id

group_id = groups.get(line._get_procurement_group_key())

if not group_id:
vals = self._prepare_procurement_group_by_line(
cr, uid, line, context=context)
Expand All @@ -70,6 +76,8 @@ def action_ship_create(self, cr, uid, ids, context=None):
# trigger another move
proc_ids += [x.id for x in line.procurement_ids
if x.state in ('exception', 'cancel')]
procurement_obj.reset_to_confirmed(cr, uid, proc_ids,
context=context)
elif sale_line_obj.need_procurement(cr, uid, [line.id],
context=context):
if (line.state == 'done') or not line.product_id:
Expand Down

0 comments on commit ff150f6

Please sign in to comment.