summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/product_template.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2024-10-23 10:22:26 +0700
committerstephanchrst <stephanchrst@gmail.com>2024-10-23 10:22:26 +0700
commit70a6cf87d721e9e6c78d27a9e9ef4168ad96fac7 (patch)
treee3d609724a143db1f8a7ae34caec537da032bec4 /indoteknik_custom/models/product_template.py
parent943ee3ca2e3b8469d1f3969fa6ea45710e532fc0 (diff)
parent25645d93db289ea4855486630dba8d578efb2851 (diff)
Merge branch 'production' into feature/generate_url
Diffstat (limited to 'indoteknik_custom/models/product_template.py')
-rwxr-xr-xindoteknik_custom/models/product_template.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py
index af7f98cd..2ca4925b 100755
--- a/indoteknik_custom/models/product_template.py
+++ b/indoteknik_custom/models/product_template.py
@@ -405,6 +405,7 @@ class ProductProduct(models.Model):
continue
if any(variant.active for variant in variants):
product_template.unpublished = False
+ variants.unpublished = False
def update_internal_reference_variants(self, limit=100):
variants = self.env['product.product'].search([