convert to list

This commit is contained in:
Raimon Esteve 2023-11-07 06:54:38 +01:00
parent 2c1dfd0bd0
commit 470525b1a4
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ class PlanProductLine(ModelSQL, ModelView, tree(separator='/')):
if self.children:
uoms = set([child.uom.category for child in self.children])
if len(uoms) == 1:
return uoms[0].id
return list(uoms)[0].id
elif self.product:
return self.product.default_uom.category.id
elif self.plan and self.plan.uom: