changeset 9a68a255a5bb in modules/sale_product_customer:6.2
details: 
https://hg.tryton.org/modules/sale_product_customer?cmd=changeset&node=9a68a255a5bb
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 138373a82c5b -r 9a68a255a5bb sale.py
--- a/sale.py   Mon Nov 01 17:31:28 2021 +0100
+++ 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()))

Reply via email to