Tryton - Issues

 

Issue7163

Title Domain inversion fails when comparing xxx2many with None
Priority bug Status resolved
Superseder Nosy List ced, reviewbot, roundup-bot
Type behavior Components sao, tryton
Assigned To ced Keywords review
Reviews 43171002,44681002
View: 43171002, 44681002

Created on 2018-02-22.15:57:50 by ced, last changed by roundup-bot.

Messages
New changeset c800b4fb962d by Cédric Krier in branch '4.6':
Correctly evaluate domain between xxx2many and null
http://hg.tryton.org/sao/rev/c800b4fb962d

New changeset fba8066a6d9e by Cédric Krier in branch '4.4':
Correctly evaluate domain between xxx2many and null
http://hg.tryton.org/sao/rev/fba8066a6d9e

New changeset 1c03b6f8c0a4 by Cédric Krier in branch '4.2':
Correctly evaluate domain between xxx2many and null
http://hg.tryton.org/sao/rev/1c03b6f8c0a4

New changeset 2b3b4d60af8d by Cédric Krier in branch '4.0':
Correctly evaluate domain between xxx2many and null
http://hg.tryton.org/sao/rev/2b3b4d60af8d

New changeset b7852b52d5b7 by Cédric Krier in branch '3.8':
Correctly evaluate domain between xxx2many and null
http://hg.tryton.org/sao/rev/b7852b52d5b7
New changeset bfa23688c8c8 by Cédric Krier in branch '4.6':
Correctly evaluate domain between xxx2many and None
http://hg.tryton.org/tryton/rev/bfa23688c8c8

New changeset 18470970ae56 by Cédric Krier in branch '4.4':
Correctly evaluate domain between xxx2many and None
http://hg.tryton.org/tryton/rev/18470970ae56

New changeset 47eb86223b1f by Cédric Krier in branch '4.2':
Correctly evaluate domain between xxx2many and None
http://hg.tryton.org/tryton/rev/47eb86223b1f

New changeset f36b804eb34d by Cédric Krier in branch '4.0':
Correctly evaluate domain between xxx2many and None
http://hg.tryton.org/tryton/rev/f36b804eb34d

New changeset 186e311a0222 by Cédric Krier in branch '3.8':
Correctly evaluate domain between xxx2many and None
http://hg.tryton.org/tryton/rev/186e311a0222
New changeset 0cd7e3300add by Cédric Krier in branch 'default':
Correctly evaluate domain between xxx2many and null
http://hg.tryton.org/sao/rev/0cd7e3300add
New changeset c253c740288d by Cédric Krier in branch 'default':
Correctly evaluate domain between xxx2many and None
http://hg.tryton.org/tryton/rev/c253c740288d
review43171002 updated at https://codereview.tryton.org/43171002/#ps1
review44681002 updated at https://codereview.tryton.org/44681002/#ps1
msg38569 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-02-22.15:57:49
When such domain is used [('childs', '=', None)] (ex: in stock.location), it is evaluated to False when the field childs is empty. This is because the value of the field is [] (empty list) so '[] == None' is False.
History
Date User Action Args
2018-03-10 23:47:26roundup-botsetmessages: + msg38940
2018-03-10 23:46:33roundup-botsetmessages: + msg38938
2018-03-04 00:53:50roundup-botsetmessages: + msg38784
2018-03-04 00:52:38roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg38783
2018-02-22 16:19:33reviewbotsetmessages: + msg38571
2018-02-22 16:19:30reviewbotsetnosy: + reviewbot
messages: + msg38570
2018-02-22 16:01:46cedsetstatus: in-progress -> testing
reviews: 43171002,44681002
keyword: + review
2018-02-22 15:57:50cedcreate

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