support content without a product file.

modified:   product.py
This commit is contained in:
Russell Ballestrini 2022-06-30 14:56:29 -04:00
parent 7227902fda
commit 0b73333b4a

View file

@ -183,9 +183,11 @@ class Product(RBase, Base):
@property
def is_ready(self):
if self.is_bundle:
return True if len(self.bundle_metadata["product-ids"]) >= 1 else False
return True if self.extensions.get("product") else False
if self.is_sellable:
if self.is_bundle:
return True if len(self.bundle_metadata["product-ids"]) >= 1 else False
return True if self.extensions.get("product") else False
return True
@property
def is_not_ready(self):