changeset 23f07e250a76 in modules/sale:default details: https://hg.tryton.org/modules/sale?cmd=changeset&node=23f07e250a76 description: Remove unnecessary depend on unit
issue11605 review417571003 diffstat: sale.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diffs (15 lines): diff -r 453100758df4 -r 23f07e250a76 sale.py --- a/sale.py Sun Jul 17 00:00:56 2022 +0200 +++ b/sale.py Sat Jul 30 11:14:26 2022 +0200 @@ -1397,8 +1397,9 @@ def on_change_with_summary(self, name=None): return firstline(self.description or '') - @fields.depends('type', 'quantity', 'unit_price', 'unit', 'sale', - '_parent_sale.currency') + @fields.depends( + 'type', 'quantity', 'unit_price', + 'sale', '_parent_sale.currency') def on_change_with_amount(self): if self.type == 'line': currency = self.sale.currency if self.sale else None