Files
test/mrp_workorder_hr/wizard/propose_change.py
2023-04-14 17:42:23 +08:00

14 lines
371 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class ProposeChange(models.TransientModel):
_inherit = 'propose.change'
def _workorder_name(self):
if self.workorder_id.employee_id:
return self.workorder_id.employee_id.name
return super()._workorder_name()