Tryton - Issues



Title PYSON Equal on two date return false even if they are the same
Priority bug Status in-progress
Superseder Nosy List ced, pkunk, reviewbot
Type behavior Components sao, tryton
Assigned To pkunk Keywords review
Reviews 44081002
View: 44081002

Created on 2018-03-02.15:56:23 by pkunk, last changed by reviewbot.

File name Uploaded Type Edit Remove
MomentCompare.png pkunk, 2018-03-02.15:56:22 image/png
review44081002 updated at
msg38806 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2018-03-05.17:03:23
The same test should be added to tryton for consistency.
review44081002 updated at
review44081002 updated at
msg38762 (view) Author: [hidden] (pkunk) Date: 2018-03-02.15:56:22
When you submit an eval on two date, Equal.eval_ compare two Moment object.
But if you do 
m = Moment('2017-01-01')
m2 = Moment('2017-01-01')
m == m2 // return false !!

So for example, if you ant to hide a date field if it's equal to another datefield it does not work in sao.

Patch incomming.
Date User Action Args
2018-03-06 10:42:29reviewbotsetmessages: + msg38815
2018-03-05 17:03:23cedsetstatus: chatting -> in-progress
component: + tryton
type: behavior
messages: + msg38806
nosy: + ced
2018-03-05 16:55:20reviewbotsetmessages: + msg38805
2018-03-02 17:16:43reviewbotsetstatus: resolved -> chatting
nosy: + reviewbot
messages: + msg38764
2018-03-02 16:51:47pkunksetreviews: -> 44081002
2018-03-02 16:51:18pkunksetreviews:
keyword: + review
2018-03-02 15:56:23pkunkcreate

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