We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b02e3d commit 8c465b6Copy full SHA for 8c465b6
product_packaging_level_salable/tests/test_packaging_level_can_be_sold.py
@@ -29,9 +29,9 @@ def test_onchange_product_packaging_id(self):
29
def test_product_packaging_can_be_sold(self):
30
"""Check that a product.packaging can be independently set as can be sold."""
31
exception_msg = (
32
- "Packaging Test packaging cannot be sold on product {} must be set "
+ f"Packaging Test packaging cannot be sold on product {self.product.name} must be set "
33
"as 'Sales' in order to be used on a sale order."
34
- ).format(self.product.name)
+ )
35
with self.assertRaisesRegex(ValidationError, exception_msg):
36
self.order_line.write(
37
{"product_packaging_id": self.packaging_cannot_be_sold.id}
0 commit comments