diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-10-21 16:33:48 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-10-21 16:33:48 +0700 |
| commit | 81d6d5550737af445900199afd6edf5824bd03e2 (patch) | |
| tree | d83ad7f29bfb0c6964b8628d49a64533ae64c4fb | |
| parent | eadc70481dd65dd7483aa2ae5c9bcc68bb274f3e (diff) | |
cr active product product
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 1 |
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([ |
