diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-05-19 08:37:31 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-05-19 08:37:31 +0700 |
| commit | 26b47c8647d3c66e6f659efc31be3deccfe026c9 (patch) | |
| tree | a327c801c7622e0b7a1a3c0cf35e93fc3df12caa | |
| parent | bf79c492c047b8b9e0aa7657959a6f94263765dd (diff) | |
(andri) fix log note double pada product variants
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 2679fbfd..5cb3da88 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): |
