Skip to content

Commit

Permalink
[MIG] repair_refurbish: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPForgeFlow committed Aug 3, 2023
1 parent bf7a4ff commit 3d8452c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion repair_refurbish/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "MRP Repair Refurbish",
"summary": "Create refurbished products during repair",
"version": "15.0.1.0.1",
"version": "16.0.1.0.0",
"category": "Manufacturing",
"website": "https://github.com/OCA/repair",
"author": "ForgeFlow S.L., Odoo Community Association (OCA)",
Expand Down
4 changes: 2 additions & 2 deletions repair_refurbish/models/repair.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RepairOrder(models.Model):
string="Refurbished product", comodel_name="product.product"
)
refurbish_lot_id = fields.Many2one(
string="Refurbished Lot", comodel_name="stock.production.lot"
string="Refurbished Lot", comodel_name="stock.lot"
)
refurbish_move_id = fields.Many2one(
string="Refurbished Inventory Move", comodel_name="stock.move"
Expand Down Expand Up @@ -58,7 +58,7 @@ def _get_refurbish_stock_move_dict(self):
{
"product_id": self.refurbish_product_id.id,
"lot_id": self.refurbish_lot_id.id,
"product_uom_qty": self.product_qty,
"reserved_uom_qty": self.product_qty,
"product_uom_id": self.product_uom.id
or self.refurbish_product_id.uom_id.id,
"qty_done": self.product_qty,
Expand Down
2 changes: 1 addition & 1 deletion repair_refurbish/tests/test_repair_refurbish.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def test_01_repair_refurbish(self):
)
line.onchange_product_id()
line.onchange_operation_type()
self.assertEqual(line.location_id, repair.location_id)
self.assertEqual(line.location_dest_id, self.customer_location)
self.assertEqual(line.location_id, repair.location_id)
# Complete repair:
repair.action_validate()
repair.action_repair_start()
Expand Down

0 comments on commit 3d8452c

Please sign in to comment.