Tryton - Issues

 

Issue7220

Title There should be a way to give the users the possibility to hide some part of a view
Priority feature Status resolved
Superseder Nosy List nicoe, pokoli, reviewbot, roundup-bot
Type feature request Components sao, tryton, trytond
Assigned To nicoe Keywords review
Reviews 44151002, 38061002, 39221003
View: 44151002, 38061002, 39221003

Created on 2018-03-13.14:01:28 by nicoe, last changed by roundup-bot.

Messages
New changeset 4d2d93fff61d by Nicolas ?vrard in branch 'default':
Add support of expand attribute on group tag
http://hg.tryton.org/tryton/rev/4d2d93fff61d
New changeset 168a010e056b by Nicolas ?vrard in branch 'default':
Add expand attribute on group tag
http://hg.tryton.org/trytond/rev/168a010e056b
New changeset a49b5c65ac01 by Nicolas ?vrard in branch 'default':
Add support of expand attribute on group tag
http://hg.tryton.org/sao/rev/a49b5c65ac01
review39221003 updated at https://codereview.tryton.org/39221003/#ps130001
review39221003 updated at https://codereview.tryton.org/39221003/#ps110001
review39221003 updated at https://codereview.tryton.org/39221003/#ps40002
review39221003 updated at https://codereview.tryton.org/39221003/#ps80001
review38061002 updated at https://codereview.tryton.org/38061002/#ps60001
review44151002 updated at https://codereview.tryton.org/44151002/#ps40001
review38061002 updated at https://codereview.tryton.org/38061002/#ps40001
review39221003 updated at https://codereview.tryton.org/39221003/#ps60001
review39221003 updated at https://codereview.tryton.org/39221003/#ps20001
review44151002 updated at https://codereview.tryton.org/44151002/#ps20001
review38061002 updated at https://codereview.tryton.org/38061002/#ps20001
New review39221003 at https://codereview.tryton.org/39221003/#ps1
New review38061002 at https://codereview.tryton.org/38061002/#ps1
New review44151002 at https://codereview.tryton.org/44151002/#ps1
msg38966 (view) Author: [hidden] (nicoe) (Tryton committer) (Tryton translator) Date: 2018-03-13.14:01:27
currently when a developer wants to hide a part of a form his only way of doing it is by creating a Boolean function field with an empty setter and use it in the states of the fields he wants to hide. While it works, this is still a hack and the record is considered changed even if the field does nothing.

We propose that the group tag could be used to do that. The developer wishing to  use this functionality would have to add an attribute (currently I use 'expand'). If this attribute is present the content of the group would be inserted into a GtkExpander[1], the value of the attribute (1 or 0) would be used to define the starting state of the group.

[1]: https://developer.gnome.org/gtk3/stable/GtkExpander.html
History
Date User Action Args
2018-03-23 16:30:53roundup-botsetmessages: + msg39274
2018-03-23 16:30:07roundup-botsetmessages: + msg39273
2018-03-23 16:27:57roundup-botsetstatus: in-progress -> resolved
nosy: + roundup-bot
messages: + msg39272
2018-03-23 15:55:00reviewbotsetmessages: + msg39270
2018-03-22 11:22:34reviewbotsetmessages: + msg39205
2018-03-21 19:45:21reviewbotsetmessages: + msg39194
2018-03-21 17:50:44reviewbotsetmessages: + msg39184
2018-03-21 14:44:13reviewbotsetmessages: + msg39179
2018-03-21 14:15:23reviewbotsetmessages: + msg39175
2018-03-21 14:15:04reviewbotsetmessages: + msg39174

Showing 10 items. Show all history (warning: this could be VERY long)