changeset 336ead1918af in modules/sale_product_customer:6.0
details:
https://hg.tryton.org/modules/sale_product_customer?cmd=changeset&node=336ead1918af
description:
Do not read product customers's data when product is empty
issue11172
review381761002
(grafted from 922662632fbd17304288b526bba97e463fd73254)
diffstat:
sale.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r be2c4c3d4664 -r 336ead1918af sale.py
--- a/sale.py Mon May 03 16:05:05 2021 +0200
+++ b/sale.py Mon Jan 24 17:21:33 2022 +0100
@@ -95,7 +95,7 @@
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()))