[FIX] rma: fix error in onchange of picking related to not computing it in all cases.

This commit is contained in:
Jared Kipe
2021-04-05 13:37:56 -07:00
parent f76cd697f2
commit 65aecd81c8

View File

@@ -302,6 +302,8 @@ class RMA(models.Model):
['stock_picking_id'], ['stock_picking_id']) ['stock_picking_id'], ['stock_picking_id'])
if rma_data: if rma_data:
rma.stock_picking_rma_count = rma_data[0]['stock_picking_id_count'] rma.stock_picking_rma_count = rma_data[0]['stock_picking_id_count']
else:
rma.stock_picking_rma_count = 0.0
else: else:
rma.stock_picking_rma_count = 0.0 rma.stock_picking_rma_count = 0.0