Use None instead of name as the former makes no sense.
This commit is contained in:
parent
6b1e8272e7
commit
d11c0bc84b
2
plan.py
2
plan.py
|
@ -477,7 +477,7 @@ class PlanProductLine(ModelSQL, ModelView):
|
|||
return total.quantize(Decimal(str(10 ** -digits)))
|
||||
|
||||
def on_change_with_total_unit(self, name=None):
|
||||
total = self.on_change_with_total(name)
|
||||
total = self.on_change_with_total(None)
|
||||
if total and self.plan and self.plan.quantity:
|
||||
total /= Decimal(str(self.plan.quantity))
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue