diff --git a/rma_put_away/__manifest__.py b/rma_put_away/__manifest__.py index abee8ea7..87d954f1 100644 --- a/rma_put_away/__manifest__.py +++ b/rma_put_away/__manifest__.py @@ -1,6 +1,6 @@ { "name": "RMA Put Away", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "license": "LGPL-3", "category": "RMA", "summary": "Allows to put away the received products in odoo", diff --git a/rma_put_away/models/rma_operation.py b/rma_put_away/models/rma_operation.py index 727893ce..c1b3f2d3 100644 --- a/rma_put_away/models/rma_operation.py +++ b/rma_put_away/models/rma_operation.py @@ -16,7 +16,7 @@ class RmaOperation(models.Model): default="no", ) put_away_route_id = fields.Many2one( - comodel_name="stock.location.route", + comodel_name="stock.route", string="Put Away Route", domain=[("rma_selectable", "=", True)], default=lambda self: self._default_routes(), diff --git a/rma_put_away/tests/test_rma_put_away.py b/rma_put_away/tests/test_rma_put_away.py index be54cd2e..b3bec91e 100644 --- a/rma_put_away/tests/test_rma_put_away.py +++ b/rma_put_away/tests/test_rma_put_away.py @@ -33,7 +33,7 @@ class TestRmaPutAway(common.SingleTransactionCase): } ) - cls.lot = cls.env["stock.production.lot"].create( + cls.lot = cls.env["stock.lot"].create( { "name": "Lot for tests", "product_id": cls.product_2.id, @@ -49,7 +49,7 @@ class TestRmaPutAway(common.SingleTransactionCase): } ) - cls.route1 = cls.env["stock.location.route"].create( + cls.route1 = cls.env["stock.route"].create( { "name": "Transfer WH1", "rma_selectable": True, @@ -62,7 +62,7 @@ class TestRmaPutAway(common.SingleTransactionCase): "name": "Transfer", "route_id": cls.route1.id, "location_src_id": cls.stock_rma_location.id, - "location_id": cls.put_away_loc.id, + "location_dest_id": cls.put_away_loc.id, "action": "pull", "picking_type_id": cls.wh.int_type_id.id, "procure_method": "make_to_stock", @@ -185,7 +185,7 @@ class TestRmaPutAway(common.SingleTransactionCase): res = rma.action_view_in_shipments() picking = self.env["stock.picking"].browse(res["res_id"]) picking.action_assign() - for mv in picking.move_lines: + for mv in picking.move_ids: mv.quantity_done = mv.product_uom_qty picking._action_done() wizard = self.rma_make_put_away_wiz.with_context(