Browse Source

Update pos_margin/models/pos_order.py

Co-Authored-By: Denis Roussel (ACSONE) <rousseldenis@users.noreply.github.com>
pull/423/head
Sylvain LE GAL 5 years ago
committed by GitHub
parent
commit
df6838b6ef
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pos_margin/models/pos_order.py

2
pos_margin/models/pos_order.py

@ -35,5 +35,5 @@ class PosOrder(models.Model):
order.update({ order.update({
'margin': tmp_margin, 'margin': tmp_margin,
'margin_percent': tmp_price_subtotal and ( 'margin_percent': tmp_price_subtotal and (
tmp_margin / tmp_price_subtotal * 100),
tmp_margin / tmp_price_subtotal * 100) or 0.0,
}) })
Loading…
Cancel
Save