Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@
class LocationContentTransfer(Component):
_inherit = "shopfloor.location.content.transfer"

def _find_location_move_lines_from_scan_location(self, *args, **kwargs):
move_lines = super()._find_location_move_lines_from_scan_location(
*args, **kwargs
)
def _select_move_lines_first_location(self, move_lines):
if not self.work.menu.full_location_reservation:
return move_lines
return super()._select_move_lines_first_location(move_lines)

if any(move_lines.move_id.mapped("is_full_location_reservation")):
return move_lines
return super()._select_move_lines_first_location(move_lines)

move_lines |= move_lines._full_location_reservation().move_line_ids
move_lines = super()._select_move_lines_first_location(move_lines)
move_lines |= move_lines._full_location_reservation(strict=True).move_line_ids

# As lines should concern only one source location and as lines
# can have been split, we need to retrieve only those with first location
move_lines = super()._select_move_lines_first_location(move_lines.exists())
return move_lines.exists()

def _move_lines_cancel_work(self, move_lines):
Expand Down
3 changes: 1 addition & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
vcrpy-unittest
odoo_test_helper
odoo-addon-stock-full-location-reservation @ git+https://github.com/OCA/wms.git@refs/pull/794/head#subdirectory=setup/stock_full_location_reservation
odoo-addon-shopfloor-base @ git+https://github.com/OCA/wms.git@refs/pull/899/head#subdirectory=setup/shopfloor_base
odoo-addon-shopfloor @ git+https://github.com/OCA/wms.git@refs/pull/899/head#subdirectory=setup/shopfloor
odoo-addon-shopfloor @ git+https://github.com/OCA/wms.git@refs/pull/917/head#subdirectory=setup/shopfloor