mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX]compute qty when stock moves but not procurements
This commit is contained in:
committed by
AaronHForgeFlow
parent
88682dffa3
commit
f7d0e63baf
@@ -21,7 +21,7 @@ class RmaOrder(models.Model):
|
|||||||
def _compute_in_shipment_count(self):
|
def _compute_in_shipment_count(self):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
rec.in_shipment_count = len(rec.rma_line_ids.mapped(
|
rec.in_shipment_count = len(rec.rma_line_ids.mapped(
|
||||||
'procurement_ids.move_ids').filtered(
|
'move_ids').filtered(
|
||||||
lambda m: m.location_dest_id.usage == 'internal').mapped(
|
lambda m: m.location_dest_id.usage == 'internal').mapped(
|
||||||
'picking_id'))
|
'picking_id'))
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ class RmaOrder(models.Model):
|
|||||||
def _compute_out_shipment_count(self):
|
def _compute_out_shipment_count(self):
|
||||||
for rec in self:
|
for rec in self:
|
||||||
rec.out_shipment_count = len(rec.rma_line_ids.mapped(
|
rec.out_shipment_count = len(rec.rma_line_ids.mapped(
|
||||||
'procurement_ids.move_ids').filtered(
|
'move_ids').filtered(
|
||||||
lambda m: m.location_id.usage == 'internal').mapped(
|
lambda m: m.location_id.usage == 'internal').mapped(
|
||||||
'picking_id'))
|
'picking_id'))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user