Skip to content

Commit

Permalink
[FIX] Show only packages that reside in the selected destination here
Browse files Browse the repository at this point in the history
  • Loading branch information
angelinaanaki committed Nov 20, 2023
1 parent e48963d commit 93c4ae3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ class StockQuantPackageFastMoveWizard(models.TransientModel):
_name = "stock.quant.package.fast.move.wizard"
_description = "Stock Quant Package Fast Move Wizard"

package_dest_id = fields.Many2one("stock.quant.package", "Destination Package")
package_dest_id = fields.Many2one(
"stock.quant.package",
"Destination Package",
domain="[('location_id', '=', location_dest_id)]",
)
location_dest_id = fields.Many2one(
"stock.location", "Destination Location", required=True
)
Expand Down

0 comments on commit 93c4ae3

Please sign in to comment.