[IMP] survey_record_generation : hotfix when creating a record depending on an other existing record
Some checks failed
pre-commit / pre-commit (pull_request) Failing after 1m36s

This commit is contained in:
2025-11-12 10:16:44 +01:00
parent f709adbcec
commit c35bb33284

View File

@@ -78,7 +78,8 @@ class SurveyUserInput(models.Model):
for k, v in vals.items()
if not getattr(existing_record, k, False)
}
record = existing_record.write(vals_with_keys_not_in_record)
existing_record.write(vals_with_keys_not_in_record)
record = existing_record
else:
if (
model == "res.partner"