MIG maintenance_equipment_charge For Odoo 12.0

This commit is contained in:
Bhoomi
2019-12-11 12:04:44 -05:00
parent 12ec70f490
commit 5c0e65ecdc
3 changed files with 8 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ class EquipmentChargeType(models.Model):
_name = 'maintenance.equipment.charge.type'
name = fields.Char(string='Charge Type')
uom_id = fields.Many2one('product.uom', string='Charge UOM')
uom_id = fields.Many2one('uom.uom', string='Charge UOM')
class Equipment(models.Model):
@@ -42,5 +42,5 @@ class EquipmentCharge(models.Model):
employee_id = fields.Many2one('hr.employee', string='Employee')
department_id = fields.Many2one('hr.department', string='Department')
qty = fields.Float(string='Quantity', default=1.0)
uom_id = fields.Many2one('product.uom', related='type_id.uom_id')
uom_id = fields.Many2one('uom.uom', related='type_id.uom_id')
amount = fields.Float(string='Amount')