mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] qty_delivered is not updated properly
This commit is contained in:
committed by
Carlos Vallés Fuster
parent
764075c8cb
commit
4b783c29a1
@@ -120,10 +120,7 @@ class RmaOrderLine(models.Model):
|
||||
@api.depends('move_ids', 'move_ids.state', 'type')
|
||||
def _compute_qty_received(self):
|
||||
for rec in self:
|
||||
if rec.supplier_to_customer:
|
||||
qty = rec._get_rma_move_qty('done', direction='out')
|
||||
else:
|
||||
qty = rec._get_rma_move_qty('done', direction='in')
|
||||
qty = rec._get_rma_move_qty('done', direction='in')
|
||||
rec.qty_received = qty
|
||||
|
||||
@api.multi
|
||||
@@ -138,10 +135,7 @@ class RmaOrderLine(models.Model):
|
||||
@api.depends('move_ids', 'move_ids.state', 'type')
|
||||
def _compute_qty_delivered(self):
|
||||
for rec in self:
|
||||
if rec.supplier_to_customer:
|
||||
qty = rec._get_rma_move_qty('done', direction='in')
|
||||
else:
|
||||
qty = rec._get_rma_move_qty('done', direction='out')
|
||||
qty = rec._get_rma_move_qty('done', direction='out')
|
||||
rec.qty_delivered = qty
|
||||
|
||||
@api.model
|
||||
|
||||
Reference in New Issue
Block a user