mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
MIG maintenance_repair For Odoo 13.0
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user