mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Improve put-away release in vertical lift
If we have several goods to put in the same tray, it is inefficient to release (close) the tray between each line if we reopen the same tray. Release the tray only when the last line is reached.
This commit is contained in:
committed by
Hai Lang
parent
4306b8db4a
commit
8fb6930ed5
@@ -3,7 +3,7 @@
|
||||
{
|
||||
"name": "Vertical Lift",
|
||||
"summary": "Provides the core for integration with Vertical Lifts",
|
||||
"version": "13.0.1.0.0",
|
||||
"version": "13.0.1.1.0",
|
||||
"category": "Stock",
|
||||
"author": "Camptocamp, Odoo Community Association (OCA)",
|
||||
"license": "AGPL-3",
|
||||
|
||||
@@ -172,10 +172,11 @@ class VerticalLiftOperationPut(models.Model):
|
||||
self.current_move_line_id.fetch_vertical_lift_tray_dest()
|
||||
|
||||
def button_release(self):
|
||||
# release (close) the tray each time, because for put-away, we
|
||||
# never know if the operator will scan another line or not
|
||||
self.shuttle_id.release_vertical_lift_tray()
|
||||
super().button_release()
|
||||
if self.count_move_lines_to_do_all() == 0:
|
||||
# we don't need to release (close) the tray until we have reached
|
||||
# the last line: the release is implicit when a next line is
|
||||
# fetched if the tray change
|
||||
self.shuttle_id.release_vertical_lift_tray()
|
||||
# sorry not sorry
|
||||
return self._rainbow_man()
|
||||
|
||||
Reference in New Issue
Block a user