changeset 99cef7cd377d in modules/carrier_weight:default details: https://hg.tryton.org/modules/carrier_weight?cmd=changeset;node=99cef7cd377d description: Exclude lines without quantity when computing carrier context
issue8108 review56601002 diffstat: sale.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r b81c7662e1f5 -r 99cef7cd377d sale.py --- a/sale.py Wed Jan 30 10:17:43 2019 +0100 +++ b/sale.py Fri Feb 22 19:50:07 2019 +0100 @@ -28,7 +28,7 @@ weights = [] context['weights'] = weights - lines = [l for l in self.lines or [] if l.quantity > 0] + lines = [l for l in self.lines or [] if l.quantity and l.quantity > 0] keyfunc = partial(self._group_parcel_key, lines) lines = sorted(lines, key=keyfunc)