From ddd07994e50b17a9c9f338145765517d94e56f0d Mon Sep 17 00:00:00 2001 From: Bhoomi Date: Thu, 29 Aug 2019 13:14:30 -0400 Subject: [PATCH] MIG `maintenance_repair` For Odoo 12.0 --- maintenance_repair/__manifest__.py | 2 +- maintenance_repair/models/maintenance.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/maintenance_repair/__manifest__.py b/maintenance_repair/__manifest__.py index e05f64b7..aaac1167 100644 --- a/maintenance_repair/__manifest__.py +++ b/maintenance_repair/__manifest__.py @@ -1,6 +1,6 @@ { 'name': 'Equipment Repair', - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', 'author': 'Hibou Corp. ', 'category': 'Human Resources', 'summary': 'Consume products on Maintenance Requests', diff --git a/maintenance_repair/models/maintenance.py b/maintenance_repair/models/maintenance.py index 9c19152a..dc096ef0 100644 --- a/maintenance_repair/models/maintenance.py +++ b/maintenance_repair/models/maintenance.py @@ -72,7 +72,7 @@ class MaintenanceRequestRepairLine(models.Model): product_uom_qty = fields.Float('Quantity', default=1.0, digits=dp.get_precision('Product Unit of Measure'), required=True, states={'done': [('readonly', True)]}) - product_uom_id = fields.Many2one('product.uom', 'Product Unit of Measure', required=True, + product_uom_id = fields.Many2one('uom.uom', 'Product Unit of Measure', required=True, states={'done': [('readonly', True)]}) state = fields.Selection([ ('draft', 'Draft'),