diff --git a/stock_request_mrp/__manifest__.py b/stock_request_mrp/__manifest__.py index 39d50aa0dbc2..3f7d2af8c0ba 100644 --- a/stock_request_mrp/__manifest__.py +++ b/stock_request_mrp/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Stock Request MRP", "summary": "Manufacturing request for stock", - "version": "13.0.1.0.0", + "version": "15.0.1.0.0", "license": "LGPL-3", "website": "https://github.com/OCA/stock-logistics-warehouse", "author": "ForgeFlow, Odoo Community Association (OCA)", diff --git a/stock_request_mrp/tests/test_stock_request_mrp.py b/stock_request_mrp/tests/test_stock_request_mrp.py index 94d997623d4e..0dbe68bffd5b 100644 --- a/stock_request_mrp/tests/test_stock_request_mrp.py +++ b/stock_request_mrp/tests/test_stock_request_mrp.py @@ -68,7 +68,7 @@ def _update_qty_in_location(self, location, product, quantity): def _create_user(self, name, group_ids, company_ids): return ( self.env["res.users"] - .with_context({"no_reset_password": True}) + .with_context(no_reset_password=True) .create( { "name": name, @@ -111,9 +111,7 @@ def _create_mrp_bom(self, product_id, raw_materials): return bom def _produce(self, mo, qty=0.0): - wiz = Form( - self.produce_wiz.with_context({"active_id": mo.id, "active_ids": [mo.id]}) - ) + wiz = Form(self.produce_wiz.with_context(active_id=mo.id, active_ids=[mo.id])) wiz.qty_producing = qty or mo.product_qty produce_wizard = wiz.save() produce_wizard.do_produce()