Missing product value when raising error message for invalid expression for cost price revision
If the expression is wrong, we try to display an error message including the product name but the instance may be not saved so `product` or `template` may not be set.
issue