diff options
| author | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-05-09 15:20:00 +0700 |
|---|---|---|
| committer | Indoteknik . <andrifebriyadiputra@gmail.com> | 2025-05-09 15:20:00 +0700 |
| commit | 474755658e732235a7855810b993184c23f75386 (patch) | |
| tree | 6ebe1f6d40749fab36160e2317e67e6801963c0b | |
| parent | 0f7e495ae7a28bd897929322e0419de91ecb1675 (diff) | |
(andri) penyesuaian log note untuk perubahan nilai pada tabel vendor pricelist & product attribute
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index 373b8ebd..e95060e6 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -406,6 +406,8 @@ class ProductTemplate(models.Model): 'image_1920': 'Main Image', 'image_carousel_lines': 'Carousel Images', 'product_template_image_ids': 'Extra Product Media', + 'seller_ids': 'Vendor Pricelist', + 'attribute_line_ids': 'Product Attributes', } for record in self: @@ -457,11 +459,11 @@ class ProductTemplate(models.Model): if old_val_str != new_val_str: if field_name in custom_labels: if old_val_str == 'None' and new_val_str != 'None': - changes.append(f"<li><b>{field_label}</b>: image added</li>") + changes.append(f"<li><b>{field_label}</b>: added</li>") elif old_val_str != 'None' and new_val_str == 'None': - changes.append(f"<li><b>{field_label}</b>: image removed</li>") + changes.append(f"<li><b>{field_label}</b>: removed</li>") else: - changes.append(f"<li><b>{field_label}</b>: image updated</li>") + changes.append(f"<li><b>{field_label}</b>: updated</li>") else: changes.append(f"<li><b>{field_label}</b>: '{old_val_str}' → '{new_val_str}'</li>") |
