1、优化夹具型号静态数据同步
This commit is contained in:
@@ -197,6 +197,12 @@ class FunctionalCuttingToolEntity(models.Model):
|
||||
record.enroll_functional_tool_entity()
|
||||
return records
|
||||
|
||||
def write(self, vals):
|
||||
res = super().write(vals)
|
||||
if vals.get('current_location'):
|
||||
self.enroll_functional_tool_entity()
|
||||
return res
|
||||
|
||||
|
||||
class FunctionalToolWarning(models.Model):
|
||||
_inherit = 'sf.functional.tool.warning'
|
||||
|
||||
Reference in New Issue
Block a user