Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
e101eb4e by Cédric Krier at 2023-06-06T12:55:12+02:00
Fallback to empty string when column path is NULL
Closes #12235
- - - - -
1 changed file:
- trytond/trytond/model/fields/many2one.py
Changes:
=====================================
trytond/trytond/model/fields/many2one.py
=====================================
@@ -133,6 +133,7 @@
red_sql = reduce_ids(table.id, (i for i in ids if i is not None))
Target = self.get_target()
path_column = getattr(Target, self.path).sql_column(table)
+ path_column = Coalesce(path_column, '')
cursor.execute(*table.select(path_column, where=red_sql))
if operator.endswith('child_of'):
where = Or()
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/e101eb4e51fbf3033739ac4d1fba24e6a5a1eb22
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/e101eb4e51fbf3033739ac4d1fba24e6a5a1eb22
You're receiving this email because of your account on foss.heptapod.net.