|
@ -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] |
|
|