summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-05-20 09:55:53 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-05-20 09:55:53 +0000
commit0d13d7a0da727e7a37b66b6cbc31a1c8398f40ab (patch)
treeea0bce3e0375a183bbaf555ec222e10e4690d4da
parente60996600f2a5e09f542810be07ad7107c14639f (diff)
parent26b47c8647d3c66e6f659efc31be3deccfe026c9 (diff)
Merged in po-lock-and-logproduct (pull request #309)
(andri) fix log note double pada product variants
-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 17805c6c..89392033 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):