Skip to content

Commit

Permalink
[IMP] stock_picking_show_return: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
hugho-ad committed Aug 17, 2021
1 parent 59447f4 commit 0ad4858
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions stock_picking_show_return/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ def _compute_returned_ids(self):

@api.depends("move_lines.origin_returned_move_id")
def _compute_source_picking_id(self):
"""Get source piking from this picking. Only one origin is possible.
"""
"""Get source piking from this picking. Only one origin is possible."""
for picking in self:
picking.source_picking_id = first(
picking.mapped("move_lines.origin_returned_move_id.picking_id")
Expand Down

0 comments on commit 0ad4858

Please sign in to comment.