[IMP]: Issues:132 Two Shipments are created for PO with Multi Routing enabled

This commit is contained in:
Haresh Chavda 2018-10-29 16:06:04 +05:30
parent aeb9971e41
commit c775f2d078
1 changed files with 9 additions and 0 deletions

View File

@ -184,3 +184,12 @@ class Orderpoint(models.Model):
result['domain'] = "[('id','in',%s)]" % (purchase_ids.ids)
return result
class PushedFlow(models.Model):
_inherit = "stock.location.path"
def _prepare_move_copy_values(self, move_to_copy, new_date):
res = super(PushedFlow, self)._prepare_move_copy_values(move_to_copy, new_date)
res['purchase_line_id'] = None
return res