Merge branch 'master-purchase' into 'master'

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

See merge request flectra-hq/flectra!161
This commit is contained in:
Parthiv Patel 2018-10-29 13:00:13 +00:00
commit 6828cb8673
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