Convert capacity to float

This commit is contained in:
Raimon Esteve 2021-07-15 16:47:37 +02:00
parent 2546478afd
commit f7e1fa0192
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Product(WineMixin, metaclass=PoolMeta):
def get_capacity(self, name):
if self.template.container and self.wine_alcohol_content:
return (self.template.container.capacity * self.wine_alcohol_content) / 100
return (float(self.template.container.capacity) * self.wine_alcohol_content) / 100
@classmethod
def validate(cls, products):