Tryton - Issues



Title SAO: many2many widget acts as readonly if size argument is set to '1'
Priority bug Status testing
Superseder Nosy List ced, formateli, perilla, reviewbot
Type behavior Components sao
Assigned To ced Keywords review
Reviews 56271002
View: 56271002

Created on 2018-06-12.17:24:42 by formateli, last changed by reviewbot.

File name Uploaded Type Edit Remove
screen1.png perilla, 2018-06-18.22:12:37 image/png
screen2.png perilla, 2018-06-18.22:12:12 image/png
review56271002 updated at
msg41565 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-06-21.10:22:42
Indeed, chained comparison is not supported in JS so we must break them: review56271002
msg41460 (view) Author: [hidden] (perilla) Date: 2018-06-18.22:12:12
I think that this behavior is due to the set_button_sensitive function
(o2m_size >= field_size >= 0)

With these values:
o2m_size = 0
field_size = 1

on sao (o2m_size >= field_size >= 0) -> true
on tryton (o2m_size >= field_size >= 0) -> False
msg41384 (view) Author: [hidden] (formateli) Date: 2018-06-13.00:44:20
One2Many fields have same behavior when size argument is set to any value other than None
Date User Action Args
2018-06-21 10:26:16reviewbotsetnosy: + reviewbot
messages: + msg41567
2018-06-21 10:22:43cedsetstatus: chatting -> testing
keyword: + review
nosy: + ced
messages: + msg41565
reviews: 56271002
assignedto: ced
2018-06-18 22:12:37perillasetfiles: + screen1.png
2018-06-18 22:12:13perillasetfiles: + screen2.png
nosy: + perilla
messages: + msg41460
2018-06-13 00:44:22formatelisetstatus: unread -> chatting
nosy: + formateli
messages: + msg41384
2018-06-12 17:24:42formatelicreate

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