Skip to content

Commit

Permalink
[IMP] shopfloor_reception: adding kwargs to _data_for_stock_picking
Browse files Browse the repository at this point in the history
  • Loading branch information
mt-software-de committed Aug 17, 2023
1 parent 20074d3 commit a6a746d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shopfloor_reception/services/reception.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,10 @@ def _assign_user_to_line(self, line):

# DATA METHODS

def _data_for_stock_picking(self, picking, with_lines=False):
data = self.data.picking(picking, with_progress=True)
def _data_for_stock_picking(self, picking, with_lines=False, **kw):
if "with_progress" not in kw:
kw["with_progress"] = True
data = self.data.picking(picking, **kw)
if with_lines:
data.update({"moves": self._data_for_moves(picking.move_lines)})
return data
Expand Down

0 comments on commit a6a746d

Please sign in to comment.