summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/product_template.py
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2025-05-23 09:38:02 +0700
committerstephanchrst <stephanchrst@gmail.com>2025-05-23 09:38:02 +0700
commitdbf09bbf792809e84d2d0330a992e42b3a5c6994 (patch)
tree9a27b4e0e6571c639ba173df5ae25a2e7014aefd /indoteknik_custom/models/product_template.py
parent4fc520a9b0d1e2e809033b35562fd80fffad472d (diff)
Revert "Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into odoo-backup"
This reverts commit 43313db30da73b87843425c01c723f66ee982886, reversing changes made to f6f59e660af6c4229ada54f7313d68867df1ba15.
Diffstat (limited to 'indoteknik_custom/models/product_template.py')
-rwxr-xr-xindoteknik_custom/models/product_template.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py
index 89392033..17805c6c 100755
--- a/indoteknik_custom/models/product_template.py
+++ b/indoteknik_custom/models/product_template.py
@@ -870,9 +870,9 @@ class ProductTemplate(models.Model):
record.message_post(body=f"<b>Updated:</b><ul>{''.join(changes)}</ul>")
# log changes to product variants
- # variant_message = f"<b>Updated:</b><ul>{''.join(changes)}</ul>"
- # for variant in record.product_variant_ids:
- # variant.message_post(body=variant_message)
+ variant_message = f"<b>Updated:</b><ul>{''.join(changes)}</ul>"
+ for variant in record.product_variant_ids:
+ variant.message_post(body=variant_message)
# simpan data lama dan log perubahan field
def write(self, vals):