[trunk] datatime search widget looses data
Bug #655266 reported by
Ferdinand
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo GTK Client (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP sa GTK client R&D |
Bug Description
example
stock - tracability - stock moves
select a to date - it copies date 00:00:00 into the search
as the date is a datetime it must copy 23:59:59 to include all move of this date
it's critical because there are some dates with time 00:00:00 and some with specific time
try 10/07/2010
Related branches
lp:~openerp-dev/openobject-client/trunk-dev-client
- OpenERP sa GTK client R&D: Pending requested
-
Diff: 271 lines (+46/-25)10 files modifiedbin/modules/gui/main.py (+4/-2)
bin/modules/gui/window/win_import.py (+13/-4)
bin/openerp-client.py (+2/-0)
bin/openerp.glade (+2/-0)
bin/widget/model/field.py (+1/-1)
bin/widget/screen/screen.py (+1/-1)
bin/widget/view/calendar_gtk/parser.py (+3/-2)
bin/widget/view/form_gtk/reference.py (+1/-1)
bin/widget/view/list.py (+16/-9)
bin/widget_search/selection.py (+3/-5)
affects: | openobject-client → openobject-addons |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-client: | |
assignee: | nobody → OpenERP sa GTK client R&D (openerp-dev-gtk) |
Changed in openobject-client: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
I would suggest the following
for the
* current date-time use now()
* for all past date selected
* for from: use 00:00:00 for time
* for to use: 23:59:59
it's a constant source of (hard to explain) errors
other example - location-structure - selecting a date -
"from" takes selected date + current time - which has to be manually adjusted to 00:00:00
"to" takes selected date + current time - which has to be manually adjusted to 23:59:59
I just want to recall that filtering fields like "create_date" this way might miss some data as the datetime is stored like
2010-10-09 23:59:59.330704
unlikely but true.