Use None instead of name as the former makes no sense.

This commit is contained in:
Albert Cervera i Areny 2014-04-10 00:08:12 +02:00
parent 6b1e8272e7
commit d11c0bc84b
1 changed files with 1 additions and 1 deletions

View File

@ -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: