Revert "[13.0][FIX] stock_vertical_lift: Error in tests"

This commit is contained in:
Guewen Baconnier
2021-01-05 07:44:45 +01:00
committed by Hai Lang
parent ff4d9bbfad
commit 42d7106315
2 changed files with 1 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "Vertical Lift",
"summary": "Provides the core for integration with Vertical Lifts",
"version": "13.0.1.1.2",
"version": "13.0.1.1.3",
"category": "Stock",
"author": "Camptocamp, Odoo Community Association (OCA)",
"license": "AGPL-3",

View File

@@ -145,11 +145,6 @@ class VerticalLiftShuttle(models.Model):
record = self.env[model].search([("shuttle_id", "=", self.id)])
if not record:
record = self.env[model].create({"shuttle_id": self.id})
# Since https://github.com/odoo/odoo/commit/3a6ac95
# _compute_vertical_lift_shuttle_id() don't work fine
# These change fix it temporally
if "location_id" in record:
record.location_id._compute_vertical_lift_shuttle_id()
return record
def action_open_screen(self):