From 6fc160d25f4b4bd1a9ed84dafac5cc63bb079cdc Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 22 Jun 2020 15:37:55 +0200 Subject: [PATCH] [IMP] Fix naming of the shuttle address we hardcode the ID of the gate for now, hence we support only a single gate. --- stock_vertical_lift_kardex/models/stock_location.py | 4 +++- stock_vertical_lift_kardex/readme/ROADMAP.rst | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stock_vertical_lift_kardex/models/stock_location.py b/stock_vertical_lift_kardex/models/stock_location.py index 8b3cd73c2..85af2c55d 100644 --- a/stock_vertical_lift_kardex/models/stock_location.py +++ b/stock_vertical_lift_kardex/models/stock_location.py @@ -32,7 +32,9 @@ class StockLocation(models.Model): subst = { "code": code, "hostId": self.env["ir.sequence"].next_by_code("vertical.lift.command"), - "addr": shuttle.name, + # hard code the gate for now. + # TODO proper handling of multiple gates for 1 lift. + "addr": shuttle.name + '-1', "carrier": self.level, "carrierNext": "0", "x": x, diff --git a/stock_vertical_lift_kardex/readme/ROADMAP.rst b/stock_vertical_lift_kardex/readme/ROADMAP.rst index 3d8aefd2e..a96fc55be 100644 --- a/stock_vertical_lift_kardex/readme/ROADMAP.rst +++ b/stock_vertical_lift_kardex/readme/ROADMAP.rst @@ -1 +1,2 @@ * Add support of the hardware +* handle multiple gates for one lift