Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
f8309d9d by Cédric Krier at 2023-07-13T15:47:10+02:00
Do not catch error in get_textual_value of Reference widget
Closes #12400
- - - - -
1 changed file:
- tryton/tryton/gui/window/view_form/view/list_gtk/widget.py
Changes:
=====================================
tryton/tryton/gui/window/view_form/view/list_gtk/widget.py
=====================================
@@ -1243,6 +1243,5 @@
_, value = value.split(',')
return int(value)
- @catch_errors()
def get_textual_value(self, record):
value = super().get_textual_value(record)
@@ -1247,4 +1246,4 @@
def get_textual_value(self, record):
value = super().get_textual_value(record)
- if value:
+ if isinstance(value, tuple):
model, value = value
@@ -1250,6 +1249,4 @@
model, value = value
- else:
- value = ''
return value
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/f8309d9d096cfd564345ac9829e1938fec72429d
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/f8309d9d096cfd564345ac9829e1938fec72429d
You're receiving this email because of your account on foss.heptapod.net.