mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] command key must be a string
not a list
This commit is contained in:
committed by
Guewen Baconnier
parent
97375bd90f
commit
8c283b3ab3
@@ -35,7 +35,10 @@ class VerticalLiftCommand(models.Model):
|
||||
|
||||
def _get_key(self, answer):
|
||||
key = answer.split("|")[1:2]
|
||||
return key
|
||||
if key:
|
||||
return key[0]
|
||||
else:
|
||||
return ''
|
||||
|
||||
@api.model_create_multi
|
||||
def create(self, vals_list):
|
||||
|
||||
Reference in New Issue
Block a user