Tryton - Issues

 

Message21920

Author guillemNaN
Recipients ced
Date 2015-07-16.12:50:03
Content
> But in this case both side should be of date type or datetime type.

Yes, of course.
To be consistent with domains, it must to force that both are date or both are datetime.

Another improvement could be (but it requires to discuss the details) to suport compare date with datetime or almost, have the datetime to date casting.
An example, you have a period that defines start and end date (fields.Date) and another object that has a DateTime field that must to be inside the period.
Now, tryton doesn't suport a domain like that (start is a DateTime field and period_start/end are Date):
[
('start', '>=', Eval('period_start')),
('start', '<=', Eval('period_end')),
]
But as I said, I think this improvement is another issue.
History
Date User Action Args
2015-07-16 12:50:05guillemNaNsetmessageid: <1437043804.99.0.325552793878.issue4879@tryton.org>
2015-07-16 12:50:04guillemNaNsetrecipients: + ced
2015-07-16 12:50:04guillemNaNlinkissue4879 messages
2015-07-16 12:50:04guillemNaNcreate

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