[16.0][MIG] Migrate rma module to v16

This commit is contained in:
Florian da Costa
2022-11-28 15:07:46 +01:00
committed by JasminSForgeFlow
parent 855e3dcf1c
commit 5f9c24bb85
16 changed files with 85 additions and 206 deletions

View File

@@ -185,7 +185,7 @@ class StockWarehouse(models.Model):
"warehouse_id": self.id,
"company_id": self.company_id.id,
"location_src_id": customer_loc.id,
"location_id": self.lot_rma_id.id,
"location_dest_id": self.lot_rma_id.id,
"procure_method": "make_to_stock",
"route_id": self.env.ref("rma.route_rma_customer").id,
"picking_type_id": self.rma_cust_in_type_id.id,
@@ -197,7 +197,7 @@ class StockWarehouse(models.Model):
"warehouse_id": self.id,
"company_id": self.company_id.id,
"location_src_id": self.lot_rma_id.id,
"location_id": customer_loc.id,
"location_dest_id": customer_loc.id,
"procure_method": "make_to_stock",
"route_id": self.env.ref("rma.route_rma_customer").id,
"picking_type_id": self.rma_cust_out_type_id.id,
@@ -209,7 +209,7 @@ class StockWarehouse(models.Model):
"warehouse_id": self.id,
"company_id": self.company_id.id,
"location_src_id": supplier_loc.id,
"location_id": self.lot_rma_id.id,
"location_dest_id": self.lot_rma_id.id,
"procure_method": "make_to_stock",
"route_id": self.env.ref("rma.route_rma_supplier").id,
"picking_type_id": self.rma_sup_in_type_id.id,
@@ -221,7 +221,7 @@ class StockWarehouse(models.Model):
"warehouse_id": self.id,
"company_id": self.company_id.id,
"location_src_id": self.lot_rma_id.id,
"location_id": supplier_loc.id,
"location_dest_id": supplier_loc.id,
"procure_method": "make_to_stock",
"route_id": self.env.ref("rma.route_rma_supplier").id,
"picking_type_id": self.rma_sup_out_type_id.id,
@@ -264,6 +264,6 @@ class StockWarehouse(models.Model):
class StockLocationRoute(models.Model):
_inherit = "stock.location.route"
_inherit = "stock.route"
rma_selectable = fields.Boolean(string="Selectable on RMA Lines")