mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] rma: fix error in onchange of picking related to not computing it in all cases.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user