Cédric Krier pushed to branch branch/5.0 at Tryton / Tryton
Commits:
e9e22c04 by Cédric Krier at 2023-07-21T00:46:20+02:00
Get current record from screen in button widget for tree
The backport 58e384fcce26 is using a property that was added only in
74790df76537
Closes #12413
- - - - -
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
=====================================
@@ -1009,7 +1009,8 @@
store = self.view.treeview.get_model()
record = store.get_value(store.get_iter(path), 0)
- if self.view.record and self.view.record != record:
+ current_record = self.view.screen.current_record
+ if current_record and current_record != record:
widget.stop_emission_by_name('clicked')
return True
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/e9e22c04e36236a954b79e3e4904d3c118170544
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/e9e22c04e36236a954b79e3e4904d3c118170544
You're receiving this email because of your account on foss.heptapod.net.