Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove deprecated tax_rate and price from ProductInput
fowczarek78e6573143b3
diff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.pyindex e3ae2a159b..286cdf87ba 100644--- a/saleor/graphql/product/mutations/products.py+++ b/saleor/graphql/product/mutations/products.py@@ -18,7 +18,6 @@ from ....product.thumbnails import (create_product_thumbnails,)from ....product.utils.attributes import get_name_from_attributes-from ...core.enums import TaxRateTypefrom ...core.mutations import (BaseMutation,ClearMetaBaseMutation,@@ -433,14 +432,7 @@ class ProductInput(graphene.InputObjectType):description="Determines if product is visible to customers.")name = graphene.String(description="Product name.")- price = Decimal(- description="""- Product price. Note: this field is deprecated, use basePrice instead."""- )base_price = Decimal(description="Product price.")- tax_rate = TaxRateType(- description="Tax rate.", deprecation_reason="taxRate is deprecated, Use taxCode"- )tax_code = graphene.String(description="Tax rate for enabled tax gateway")seo = SeoInput(description="Search engine optimization fields.")weight = WeightScalar(description="Weight of the Product.", required=False)