Get all eligible records when writting many values
The call to trigger_write_get_eligibles must be done with all the records and not only the first set. issue4863 review23311002
This commit is contained in:
@@ -828,7 +828,7 @@ class ModelSQL(ModelStorage):
|
||||
all_field_names = set()
|
||||
|
||||
# Call before cursor cache cleaning
|
||||
trigger_eligibles = cls.trigger_write_get_eligibles(records)
|
||||
trigger_eligibles = cls.trigger_write_get_eligibles(all_records)
|
||||
|
||||
super(ModelSQL, cls).write(records, values, *args)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user