Skip to content

Commit

Permalink
[MIG] stock_request_mrp: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-weiss committed Aug 18, 2022
1 parent 810ea6c commit 89f31a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion stock_request_mrp/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
6 changes: 2 additions & 4 deletions stock_request_mrp/tests/test_stock_request_mrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 89f31a5

Please sign in to comment.