[FIX] purchase_stock: buy_route xml_id
When creating a warehouse with purchase app installed, it will traceback since the route_warehouse0_buy is referenced in a wrong module. closes odoo/odoo#27523
This commit is contained in:
committed by
Arnold Moyaux
parent
c39d559ebb
commit
1c0e419a2d
@@ -124,7 +124,7 @@ class StockWarehouse(models.Model):
|
||||
'create_values': {
|
||||
'action': 'buy',
|
||||
'picking_type_id': self.in_type_id.id,
|
||||
'route_id': self._find_global_route('purchase.route_warehouse0_buy', 'Buy').id
|
||||
'route_id': self._find_global_route('purchase_stock.route_warehouse0_buy', 'Buy').id
|
||||
},
|
||||
'update_values': {
|
||||
'active': self.buy_to_resupply,
|
||||
|
||||
Reference in New Issue
Block a user