mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
@@ -20,6 +20,9 @@ class ReturnPicking(models.TransientModel):
|
|||||||
[("company_id", "=", self.picking_id.company_id.id)]
|
[("company_id", "=", self.picking_id.company_id.id)]
|
||||||
).mapped("rma_loc_id")
|
).mapped("rma_loc_id")
|
||||||
rma_loc_domain = [("id", "child_of", rma_loc.ids)]
|
rma_loc_domain = [("id", "child_of", rma_loc.ids)]
|
||||||
|
# We want to avoid setting the return move `to_refund` as it will change
|
||||||
|
# the delivered quantities in the sale and set them to invoice.
|
||||||
|
self.product_return_moves.to_refund = False
|
||||||
else:
|
else:
|
||||||
# If self.create_rma is not True, the value of the location and
|
# If self.create_rma is not True, the value of the location and
|
||||||
# the location domain will be the same as assigned by default.
|
# the location domain will be the same as assigned by default.
|
||||||
|
|||||||
Reference in New Issue
Block a user