[12.0][FIX] ValidationError string is not formatted with %s

This commit is contained in:
sergiocorato
2022-01-17 08:49:41 +01:00
parent 160dfe0d7b
commit 4371c8cf0a

View File

@@ -91,8 +91,8 @@ class StockInventory(models.Model):
lines.extend(self._generate_lines_at_date(loc, product_ids))
else:
raise ValidationError(_(
'Option %s not available when forcing Inventory Date.',
self.filter))
'Option %s not available when forcing Inventory Date.') %
self.filter)
return lines
@api.multi