Tryton - Issues

 

Issue7513

Title SAO: many2many widget acts as readonly if size argument is set to '1'
Priority bug Status resolved
Superseder Nosy List ced, formateli, perilla, reviewbot, roundup-bot
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 roundup-bot.

Files
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
Messages
New changeset 3a80c3fcc372 by Cédric Krier in branch '4.8':
Replace chained comparison as it is not support by JS
https://hg.tryton.org/sao/rev/3a80c3fcc372

New changeset b3044349bd4d by Cédric Krier in branch '4.6':
Replace chained comparison as it is not support by JS
https://hg.tryton.org/sao/rev/b3044349bd4d

New changeset 0590c5b6dd11 by Cédric Krier in branch '4.4':
Replace chained comparison as it is not support by JS
https://hg.tryton.org/sao/rev/0590c5b6dd11

New changeset 3f8d231f082a by Cédric Krier in branch '4.2':
Replace chained comparison as it is not support by JS
https://hg.tryton.org/sao/rev/3f8d231f082a

New changeset 5c1231e67166 by Cédric Krier in branch '4.0':
Replace chained comparison as it is not support by JS
https://hg.tryton.org/sao/rev/5c1231e67166
New changeset a20e702054ca by Cédric Krier in branch 'default':
Replace chained comparison as it is not support by JS
https://hg.tryton.org/sao/rev/a20e702054ca
review56271002 updated at https://codereview.tryton.org/56271002/#ps1
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
History
Date User Action Args
2018-06-29 11:33:41roundup-botsetmessages: + msg41975
2018-06-24 16:49:37roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg41623
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)