MIG maintenance_repair For Odoo 13.0

This commit is contained in:
Bhoomi
2019-09-04 14:47:00 -04:00
parent 67ab6b05f9
commit 667bc66618
4 changed files with 3 additions and 5 deletions

View File

@@ -82,7 +82,6 @@ class MaintenanceRequestRepairLine(models.Model):
standard_price = fields.Float(string='Est. Cost', states={'done': [('readonly', True)]})
cost = fields.Float(string='Cost', compute='_compute_actual_cost', stored=True)
@api.multi
def unlink(self):
if self.filtered(lambda l: l.state == 'done'):
raise UserError(_('Only draft lines can be deleted.'))
@@ -103,7 +102,6 @@ class MaintenanceRequestRepairLine(models.Model):
else:
line.cost = 0.0
@api.multi
def action_complete(self):
# Create stock movements. - Inspired by mrp_repair
MoveObj = self.env['stock.move']