Replace wrong usage of False by None
issue2512
This commit is contained in:
1 parent
588f9e4dda
commit
b9260d7170
1 file changed
+1
-1
@@ -34,7 +34,7 @@ def _percentage_amount(lines, company):
|
||||
elif hasattr(move_obj, 'default_currency'):
|
||||
currency_id = move_obj.default_currency()
|
||||
else:
|
||||
currency_id = False
|
||||
currency_id = None
|
||||
if currency_id:
|
||||
unit_price = currency_obj.compute(currency_id, unit_price,
|
||||
company.currency.id, round=False)
|
||||
|
||||
Reference in new issue
Block a user