mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] rma: compute out_shipment_count correctly. Add test cases
This commit is contained in:
committed by
Florian da Costa
parent
d077fffcbf
commit
3c51940502
@@ -30,7 +30,7 @@ class RmaOrder(models.Model):
|
||||
pickings = self.env["stock.picking"]
|
||||
for line in rec.rma_line_ids:
|
||||
pickings |= line._get_out_pickings()
|
||||
rec.in_shipment_count = len(pickings)
|
||||
rec.out_shipment_count = len(pickings)
|
||||
|
||||
def _compute_supplier_line_count(self):
|
||||
self.supplier_line_count = len(
|
||||
|
||||
Reference in New Issue
Block a user