@@ -29,11 +29,11 @@ class StockWarehouse(models.Model):
2929 "for this warehouse." ,
3030 )
3131 rma_customer_pull_id = fields .Many2one (
32- comodel_name = "stock.location. route" ,
32+ comodel_name = "stock.route" ,
3333 string = "RMA Customer Route" ,
3434 )
3535 rma_supplier_pull_id = fields .Many2one (
36- comodel_name = "stock.location. route" ,
36+ comodel_name = "stock.route" ,
3737 string = "RMA Supplier Route" ,
3838 )
3939
@@ -195,7 +195,7 @@ def get_rma_route_customer(self):
195195 "warehouse_id" : self .id ,
196196 "company_id" : self .company_id .id ,
197197 "location_src_id" : customer_loc .id ,
198- "location_id " : self .lot_rma_id .id ,
198+ "location_dest_id " : self .lot_rma_id .id ,
199199 "procure_method" : "make_to_stock" ,
200200 "picking_type_id" : self .rma_cust_in_type_id .id ,
201201 "active" : True ,
@@ -212,7 +212,7 @@ def get_rma_route_customer(self):
212212 "warehouse_id" : self .id ,
213213 "company_id" : self .company_id .id ,
214214 "location_src_id" : self .lot_rma_id .id ,
215- "location_id " : customer_loc .id ,
215+ "location_dest_id " : customer_loc .id ,
216216 "procure_method" : "make_to_stock" ,
217217 "picking_type_id" : self .rma_cust_out_type_id .id ,
218218 "active" : True ,
@@ -242,7 +242,7 @@ def get_rma_route_supplier(self):
242242 "warehouse_id" : self .id ,
243243 "company_id" : self .company_id .id ,
244244 "location_src_id" : supplier_loc .id ,
245- "location_id " : self .lot_rma_id .id ,
245+ "location_dest_id " : self .lot_rma_id .id ,
246246 "procure_method" : "make_to_stock" ,
247247 "picking_type_id" : self .rma_sup_in_type_id .id ,
248248 "active" : True ,
@@ -259,7 +259,7 @@ def get_rma_route_supplier(self):
259259 "warehouse_id" : self .id ,
260260 "company_id" : self .company_id .id ,
261261 "location_src_id" : self .lot_rma_id .id ,
262- "location_id " : supplier_loc .id ,
262+ "location_dest_id " : supplier_loc .id ,
263263 "procure_method" : "make_to_stock" ,
264264 "picking_type_id" : self .rma_sup_out_type_id .id ,
265265 "active" : True ,
@@ -271,7 +271,7 @@ def get_rma_route_supplier(self):
271271 return rma_route
272272
273273 def _create_rma_pull (self ):
274- route_obj = self .env ["stock.location. route" ]
274+ route_obj = self .env ["stock.route" ]
275275 for wh in self :
276276 if not wh .rma_customer_pull_id :
277277 wh .rma_customer_pull_id = (
0 commit comments