Skip to content

Commit

Permalink
[FIX] stock_manual_transfer: Correct model name for Preferred Route i…
Browse files Browse the repository at this point in the history
…n v15.0

Changed the model name from 'stock.route' to 'stock.location.route' in
the field definition of 'route_id' to ensure compatibility with Odoo
v15.0. The incorrect model name was causing the following validation
error during view rendering:
```
Error while validating view near:
Unknown field "_unknown.supplied_wh_id" in domain of field 'route_id'
```

Was fixed by update route_id field definition with model stock.location.route
  • Loading branch information
allanpa88 authored and luisg123v committed May 17, 2024
1 parent 77f66ec commit 31d23f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stock_manual_transfer/models/stock_manual_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class StockManualTransfer(models.Model):
states={"draft": [("readonly", False)]},
)
route_id = fields.Many2one(
"stock.route",
"stock.location.route",
string="Preferred Route",
domain="""[
('manual_transfer_selectable', '=', True),
Expand Down

0 comments on commit 31d23f5

Please sign in to comment.