support content without a product file.
modified: product.py
This commit is contained in:
parent
7227902fda
commit
0b73333b4a
1 changed files with 5 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue