Skip to content

Commit

Permalink
[IMP] stock_manual_transfer: set the default warehouse on manual tran…
Browse files Browse the repository at this point in the history
…sfers

Set the default value of the 'warehouse_id' field on the
'stock.manual_transfer' model to the default warehouse of the company.
  • Loading branch information
CLaurelB authored and luisg123v committed Jun 4, 2024
1 parent 31d23f5 commit 9e5713f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stock_manual_transfer/models/stock_manual_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class StockManualTransfer(models.Model):
required=True,
readonly=True,
states={"draft": [("readonly", False)]},
default=lambda self: self.env.user._get_default_warehouse_id(),
)
date_planned = fields.Datetime(
"Planned Date",
Expand Down

0 comments on commit 9e5713f

Please sign in to comment.