From ba40cb71d1a09e5897c8eefba2a7d8ce445db8f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 14 Jul 2015 00:06:13 +0200 Subject: [PATCH] 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 --- trytond/model/modelsql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/model/modelsql.py b/trytond/model/modelsql.py index 809dc344d0..f85879626a 100644 --- a/trytond/model/modelsql.py +++ b/trytond/model/modelsql.py @@ -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)