From 5bc61cab99cda7805e9a16d083f13c270d0bbc71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 31 Oct 2018 18:17:35 +0100 Subject: [PATCH] Use int and Decimal instead of lambda issue7816 review74401002 --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index 24e73b1322..561850d3dc 100644 --- a/invoice.py +++ b/invoice.py @@ -55,7 +55,7 @@ class InvoiceLine(metaclass=PoolMeta): lines = super(InvoiceLine, self).get_move_lines() if self.from_commissions: - amounts = defaultdict(lambda: 0) + amounts = defaultdict(int) for commission in self.from_commissions: if not commission.waiting_move: continue