Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
guewen committed Mar 11, 2020
1 parent 8ab3d06 commit a4618a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion stock_routing_operation/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class StockMove(models.Model):
_inherit = "stock.move"

def _action_assign(self):
# TODO use savepoint on the original assign instead of using
# unreserve
super()._action_assign()
if not self.env.context.get("exclude_apply_routing_operation"):
self._apply_src_move_routing_operation()
Expand All @@ -23,7 +25,7 @@ def _apply_dest_move_routing_operation(self):
dest_moves._apply_move_location_dest_routing_operation()

def _bypass_routing_operation_application(self, routing_type):
""" Override this method if you need to by pass the routing operation
""" Override this method if you need to bypass the routing operation
logic for moves related characteristic.
"""
if routing_type not in ("src", "dest"):
Expand Down

0 comments on commit a4618a8

Please sign in to comment.