This commit is contained in:
jinling.yang
2024-03-18 14:43:27 +08:00
parent e444e27cad
commit cfd2910ead
8 changed files with 411 additions and 354 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'