From df6838b6efe8edf0d6d7f24de87f6152c0e13c9e Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Thu, 12 Dec 2019 12:03:34 +0100 Subject: [PATCH] Update pos_margin/models/pos_order.py Co-Authored-By: Denis Roussel (ACSONE) --- pos_margin/models/pos_order.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pos_margin/models/pos_order.py b/pos_margin/models/pos_order.py index 557b64a4..f4157ad9 100644 --- a/pos_margin/models/pos_order.py +++ b/pos_margin/models/pos_order.py @@ -35,5 +35,5 @@ class PosOrder(models.Model): order.update({ 'margin': tmp_margin, 'margin_percent': tmp_price_subtotal and ( - tmp_margin / tmp_price_subtotal * 100), + tmp_margin / tmp_price_subtotal * 100) or 0.0, })