mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] allow write value on every picking on complex routes
This commit is contained in:
committed by
Aaron ForgeFlow
parent
9669792d87
commit
bb7f461bfd
@@ -13,8 +13,6 @@ class RmaMakePicking(models.TransientModel):
|
||||
for line in self.mapped("item_ids.line_id").filtered(
|
||||
lambda x: x.operation_id.default_carrier_id
|
||||
):
|
||||
pickings = line._get_out_pickings().filtered(
|
||||
lambda x: x.location_dest_id.usage == "customer" and not x.carrier_id
|
||||
)
|
||||
pickings = line._get_out_pickings().filtered(lambda x: not x.carrier_id)
|
||||
pickings.write({"carrier_id": line.operation_id.default_carrier_id.id})
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user