summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
Diffstat (limited to 'addons')
-rw-r--r--addons/sale/models/sale.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/sale/models/sale.py b/addons/sale/models/sale.py
index 5fce56f0fa1..071e145a662 100644
--- a/addons/sale/models/sale.py
+++ b/addons/sale/models/sale.py
@@ -1704,11 +1704,12 @@ class SaleOrderLine(models.Model):
name = "\n"
- custom_values = self.product_custom_attribute_value_ids.custom_product_template_attribute_value_id
+ custom_ptavs = self.product_custom_attribute_value_ids.custom_product_template_attribute_value_id
+ no_variant_ptavs = self.product_no_variant_attribute_value_ids._origin
# display the no_variant attributes, except those that are also
- # displayed by a custom (avoid duplicate)
- for ptav in (self.product_no_variant_attribute_value_ids - custom_values):
+ # displayed by a custom (avoid duplicate description)
+ for ptav in (no_variant_ptavs - custom_ptavs):
name += "\n" + ptav.display_name
# display the is_custom values