diff --git a/sale.py b/sale.py index 7db7130acf..facdba3589 100644 --- a/sale.py +++ b/sale.py @@ -95,7 +95,7 @@ class AmendmentLine(metaclass=PoolMeta): super().on_change_product() except AttributeError: pass - if not self.product and not self.line: + if not self.product or not self.line: return product_customers = list(self.product.product_customer_used( **self.line._get_product_customer_pattern()))