[IMP] Fix naming of the shuttle address

we hardcode the ID of the gate for now, hence we support
only a single gate.
This commit is contained in:
Alexandre Fayolle
2020-06-22 15:37:55 +02:00
committed by Dũng (Trần Đình)
parent 355d19f7a6
commit 6fc160d25f
2 changed files with 4 additions and 1 deletions

View File

@@ -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,