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, })