1、优化夹具型号静态数据同步

This commit is contained in:
yuxianghui
2024-03-15 17:38:43 +08:00
parent d6c4eb7479
commit 3b7e120eb2
5 changed files with 381 additions and 348 deletions

View File

@@ -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'