diff options
| -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>") |
