From f18efcd029aebff1bb3f835919b32f0faaea9ec0 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Thu, 16 Jul 2020 12:45:37 -0700 Subject: [PATCH 1/2] Bump hibou-oca/social to current 12 for mass mailing changes/fixes. --- external/hibou-oca/social | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/external/hibou-oca/social b/external/hibou-oca/social index eeedcbd4..6ecc9c52 160000 --- a/external/hibou-oca/social +++ b/external/hibou-oca/social @@ -1 +1 @@ -Subproject commit eeedcbd41dc960ffdf19e8f7924ecb5b7aa9d84d +Subproject commit 6ecc9c52f37dc32c45f206c1152a67477f3a69e0 From 0af21dd42840f647fb53518183ee13280a5e9d08 Mon Sep 17 00:00:00 2001 From: Bhoomi Vaishnani Date: Wed, 22 Jul 2020 15:27:29 -0400 Subject: [PATCH 2/2] [FIX] stock_landed_costs_average: Resolve Float division by zero error. --- stock_landed_costs_average/models/stock_landed_cost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_landed_costs_average/models/stock_landed_cost.py b/stock_landed_costs_average/models/stock_landed_cost.py index 16dd31ea..09fca953 100644 --- a/stock_landed_costs_average/models/stock_landed_cost.py +++ b/stock_landed_costs_average/models/stock_landed_cost.py @@ -88,7 +88,7 @@ class LandedCost(models.Model): ('id', 'in', quant_loc_ids)]) qty_available = line.product_id.with_context(location=locations.ids).qty_available total_cost = (qty_available * line.product_id.standard_price) + cost_to_add - line.product_id.write({'standard_price': total_cost / qty_available}) + line.product_id.write({'standard_price': total_cost / qty_available if qty_available != 0 else 0}) move = move.create(move_vals) cost.write({'state': 'done', 'account_move_id': move.id})