Add patch for issue4822
This commit is contained in:
parent
0d0f1218b7
commit
8e86176493
|
@ -0,0 +1,22 @@
|
|||
# HG changeset patch
|
||||
# User Sergi Almacellas Abellana <sergi@koolpi.com>
|
||||
Always return a list on ModelSQL create
|
||||
|
||||
issue4822
|
||||
review16351002
|
||||
|
||||
Index: trytond/trytond/model/modelsql.py
|
||||
===================================================================
|
||||
|
||||
--- a/trytond/trytond/model/modelsql.py
|
||||
+++ b/trytond/trytond/model/modelsql.py
|
||||
@@ -406,7 +406,7 @@
|
||||
super(ModelSQL, cls).create(vlist)
|
||||
|
||||
if cls.table_query():
|
||||
- return False
|
||||
+ return []
|
||||
|
||||
table = cls.__table__()
|
||||
modified_fields = set()
|
||||
|
Loading…
Reference in New Issue