Browse Source

[FIX] remove if statement as it's tested before

pull/1/head
houssine 6 years ago
parent
commit
6a1bb25606
  1. 1
      easy_my_coop/models/operation_request.py

1
easy_my_coop/models/operation_request.py

@ -226,7 +226,6 @@ class operation_request(models.Model):
convert_quant = int(amount_to_convert / rec.share_to_product_id.list_price) convert_quant = int(amount_to_convert / rec.share_to_product_id.list_price)
remainder = amount_to_convert % rec.share_to_product_id.list_price remainder = amount_to_convert % rec.share_to_product_id.list_price
if rec.company_id.unmix_share_type:
if convert_quant > 0 and remainder == 0: if convert_quant > 0 and remainder == 0:
share_ids = rec.partner_id.share_ids share_ids = rec.partner_id.share_ids
line = share_ids[0] line = share_ids[0]

Loading…
Cancel
Save