Commit Graph

77 Commits

Author SHA1 Message Date
Xavier Morel 04cb566ad9 [IMP] datetime search field: use date widget, make field's default domain span the whole day (using range)
search API improvement: Field gains a make_domain method, called by get_domain to build the default domain for the field.

make_domain is called with the field's name, operator and current values (fully computed), the default implementation is to just shove them all into a domain.

This lets fields customize the default domain for the field without having to reimplement (or breaking) the filter_domain handling

bzr revid: xmo@openerp.com-20110824145205-2wnig9duebja9jrk
2011-08-24 16:52:05 +02:00
Xavier Morel 4e5f4bd565 [IMP] simple style fixes
bzr revid: xmo@openerp.com-20110812094541-zeb5lz6nk0jgq21y
2011-08-12 11:45:41 +02:00
Xavier Morel 61e9552f6d [FIX] reintroduce o2m search field, aliases to CharField. Also make m2m search field an actual alias to CharField
bzr revid: xmo@openerp.com-20110812083610-utduagt0np0h7rib
2011-08-12 10:36:10 +02:00
Xavier Morel 142ae74461 [FIX] re-introduce M2M widget
bzr revid: xmo@openerp.com-20110811131257-t6pdqsdrhuxgne22
2011-08-11 15:12:57 +02:00
Antony Lesuisse a7163f9d6a [IMP] remove nullviewmanagerfrom search
bzr revid: al@openerp.com-20110810124124-zw1ab65iz6fi79wu
2011-08-10 14:41:24 +02:00
Xavier Morel 14ec9faf37 [REM] O2M and M2M search field: not sure they're ever used, and in case they are I'd rather have an actual error than some crappy placeholder field
bzr revid: xmo@openerp.com-20110810111903-doxuzpec9rb432zc
2011-08-10 13:19:03 +02:00
Xavier Morel f7369a8de7 [IMP] make date field a single-component field, domained by equality
bzr revid: xmo@openerp.com-20110810110055-y2zmsn33lfbeksct
2011-08-10 13:00:55 +02:00
Xavier Morel bdacad5c2d [IMP] make search boolean field inherit from selection
bzr revid: xmo@openerp.com-20110810104910-sz4236szqt5pmjst
2011-08-10 12:49:10 +02:00
Xavier Morel 0e597e8ef3 [FIX] start() synchronization in group search widget
Group did not propagate the result of start()ing its subwidgets to its caller (an other group or the searchview itself) => if it contained an async-starting widget (e.g. an m2o), the search view would not be able to wait for the async widget, and would consider itself 'intialized' before truly being so, leading to incorrect results in case of auto_search

bzr revid: xmo@openerp.com-20110803110615-3ps3he9hza05h7q8
2011-08-03 13:06:15 +02:00
Xavier Morel 9fe7ed5d04 [REM] trailing comma in object literal
bzr revid: xmo@openerp.com-20110803104928-t9a1plo51djmivml
2011-08-03 12:49:28 +02:00
niv-openerp a64f68bd20 [imp] DOM insertion methods for Widget + doc + rpc stop mechanism
bzr revid: nicolas.vanhoren@openerp.com-20110728165914-6nadrs5sj00jd91j
2011-07-28 18:59:14 +02:00
niv-openerp 8e8ca695cb [imp] changed Controller to Widget and BaseWidget to OldWidget
bzr revid: nicolas.vanhoren@openerp.com-20110728144912-t3kml1yo8gt261ga
2011-07-28 16:49:12 +02:00
niv-openerp ccb48c8f4b [imp] changed a lot of things in controller but stick with retro-compatibility
bzr revid: nicolas.vanhoren@openerp.com-20110728143413-7z0an78q6k5ytsiy
2011-07-28 16:34:13 +02:00
niv-openerp a30bef7be6 [fix] made the managed filters auto_search
bzr revid: nicolas.vanhoren@openerp.com-20110725121823-gekerf0s3pn78kqo
2011-07-25 14:18:23 +02:00
niv-openerp f7c6662d83 [imp] added manage filters link
bzr revid: nicolas.vanhoren@openerp.com-20110725121001-95af30c1incqg4kl
2011-07-25 14:10:01 +02:00
niv-openerp fb0c16e24e [imp] added possibility to save filters
bzr revid: nicolas.vanhoren@openerp.com-20110725113740-8q9vo1rlvexertc1
2011-07-25 13:37:40 +02:00
Xavier Morel e1f9b0c600 [FIX] race condition introduced in nicolas.vanhoren@openerp.com-20110722154419-9g31mwfsuv67rjz3
if search view contains only synchronously-initialized widgets, 'self.ready.resolve()' is called before 'self' is set since 'self' is set *after* the $.when call

move 'self'-setting to the top of the function, just in case

bzr revid: xmo@openerp.com-20110725091049-q5lt2sgbfawphiuh
2011-07-25 11:10:49 +02:00
niv-openerp 7d0a18e84c [fix] lot of bugs with contollers due to merge
bzr revid: nicolas.vanhoren@openerp.com-20110722162701-me9jag18dp5m05wz
2011-07-22 18:27:01 +02:00
niv-openerp 70ae6c0326 [fix] some bugs related to combo box for filters management
bzr revid: nicolas.vanhoren@openerp.com-20110722154419-9g31mwfsuv67rjz3
2011-07-22 17:44:19 +02:00
niv-openerp 95ccd74114 [imp] made usage of a managed filter possible
bzr revid: nicolas.vanhoren@openerp.com-20110722153505-g5mukqwfmd6eup2t
2011-07-22 17:35:05 +02:00
niv-openerp b15b501b8a [imp] managed filters startup
bzr revid: nicolas.vanhoren@openerp.com-20110722150537-i01yezky8fcar90h
2011-07-22 17:05:37 +02:00
Xavier Morel 7dda46b605 [FIX] validation of float fields
bzr revid: xmo@openerp.com-20110720110134-fi1zczzf5m579l12
2011-07-20 13:01:34 +02:00
Antony Lesuisse 31a725f75c Controller is now a family
bzr revid: al@openerp.com-20110718125422-x20k89dogbklgr4c
2011-07-18 14:54:22 +02:00
Antony Lesuisse 2decff7b21 controller move Class from base to controller
bzr revid: al@openerp.com-20110715141600-4tr536v7vfrv9tkk
2011-07-15 16:16:00 +02:00
Xavier Morel d6dee4c334 [IMP] enable jquery-ui on search m2o widgets
bzr revid: xmo@openerp.com-20110715122305-1pwttyioe96uwoft
2011-07-15 14:23:05 +02:00
Xavier Morel 02feed6338 [FIX] oops, forgot some logging
bzr revid: xmo@openerp.com-20110715120856-ijpicqlyumrt69rh
2011-07-15 14:08:56 +02:00
Xavier Morel 6b1ab45d87 [IMP] allow search widgets to have an async startup, make m2o widget name_get their default value and behave correctly for fuzzy searches
bzr revid: xmo@openerp.com-20110715115800-gd9xspshxy7hnvun
2011-07-15 13:58:00 +02:00
Xavier Morel f3af583536 [IMP] SearchView: fix some style issue, remove resolved todo marks, fix global variables which should not be global (and remove some unneeded intermediate variables)
bzr revid: xmo@openerp.com-20110715080145-t3bz1hslil459fxk
2011-07-15 10:01:45 +02:00
Xavier Morel 4f5f4e537c [FIX] when switching between actions like a madman, there seem to be cases when a search view *should* be ready (on_loaded has finished executing) yet not all widgets are fully rendered (has only happened on the Date one so far, YMMV)
just raise an invalid search error instead of blowing up, I can't find what the actual problem is for now

lp bug: https://launchpad.net/bugs/805861 fixed

bzr revid: xmo@openerp.com-20110715075328-0lfwvnoul9atv2tc
2011-07-15 09:53:28 +02:00
niv-openerp 657b659193 [fix] small fix for non-logical state in search view
bzr revid: nicolas.vanhoren@openerp.com-20110705093711-0rcb0y7c0cosemua
2011-07-05 11:37:11 +02:00
Xavier Morel 7bfd9aee40 [FIX] add property length on FilterGroup so SearchView.field knows that it has sub-filters and can display them
lp bug: https://launchpad.net/bugs/801143 fixed

bzr revid: xmo@openerp.com-20110624140508-9yhxwhd9myhisso1
2011-06-24 16:05:08 +02:00
niv-openerp ee1970c2da [imp] small improvement to advanced filters
bzr revid: nicolas.vanhoren@openerp.com-20110621141107-m7xcywalskoujsq0
2011-06-21 16:11:07 +02:00
niv-openerp 3cb34f3f85 [imp] small improvements to advanced filters
bzr revid: nicolas.vanhoren@openerp.com-20110621130501-0f1rkr25vv86v8gq
2011-06-21 15:05:01 +02:00
niv-openerp 4e9834f4e3 [imp] small improvements to advanced filters
bzr revid: nicolas.vanhoren@openerp.com-20110621125317-0s7cfk7q8jkflmne
2011-06-21 14:53:17 +02:00
niv-openerp f6d4bdc555 Import old branch.
bzr revid: nicolas.vanhoren@openerp.com-20110531130154-45t27asxk5pcr7sd
2011-05-31 15:01:54 +02:00
niv-openerp bcc5393d48 [imp] Improved advanced filters design, added setup of manage filters.
bzr revid: nicolas.vanhoren@openerp.com-20110527102527-p9qfobfo9tcjkvub
2011-05-27 12:25:27 +02:00
niv-openerp 62938b341f [imp] Changed design of custom filters.
bzr revid: nicolas.vanhoren@openerp.com-20110526145445-4fwzj9mtsbfhh89e
2011-05-26 16:54:45 +02:00
niv-openerp 42357cb76b [IMP] improved custom filters.
bzr revid: nicolas.vanhoren@openerp.com-20110520102030-bpzlt2z87cz104ic
2011-05-20 12:20:30 +02:00
niv-openerp aea59bce25 [IMP] Changed custom filters displaying.
bzr revid: nicolas.vanhoren@openerp.com-20110520100109-xn5wh6s991fuiagr
2011-05-20 12:01:09 +02:00
niv-openerp a15401a722 [IMP] added selection in custom filters.
bzr revid: nicolas.vanhoren@openerp.com-20110519170041-kgkio0hp6nt6u4bn
2011-05-19 19:00:41 +02:00
niv-openerp 0ce128b59e [IMP] Added integer and float to custom filters.
bzr revid: nicolas.vanhoren@openerp.com-20110519161835-blao1wa20xfmutsq
2011-05-19 18:18:35 +02:00
niv-openerp 50434b10bc [IMP] Added datetime and date picker to custom filters.
bzr revid: nicolas.vanhoren@openerp.com-20110519155302-qfthbnkic2qfzmf1
2011-05-19 17:53:02 +02:00
niv-openerp 604434f322 [IMP] Added all fields in custom filters.
bzr revid: nicolas.vanhoren@openerp.com-20110519151249-fgangasrt2ule5kr
2011-05-19 17:12:49 +02:00
niv-openerp cb854aa0b3 [FIX] Rendering issue in Chrome.
bzr revid: nicolas.vanhoren@openerp.com-20110509105953-ffjp4t06p6gulumd
2011-05-09 12:59:53 +02:00
niv-openerp 5e2cda5a0c [FIX] Made the list appear in many2many.
bzr revid: nicolas.vanhoren@openerp.com-20110426085527-5ntgrkug2clipp2s
2011-04-26 10:55:27 +02:00
niv-openerp f3ef034ac2 [IMP] Improved custom filters design.
bzr revid: nicolas.vanhoren@openerp.com-20110412162703-op0kbnqhhgikygej
2011-04-12 18:27:03 +02:00
Fabien Meghazi bc82a989f2 [IMP] Renamed Notification methods 'default' -> notify , 'alert' -> warn
bzr revid: fme@openerp.com-20110411083032-zc87gltpnw2z7s0r
2011-04-11 10:30:32 +02:00
Antony Lesuisse 340e9f8b2c remove debugging shit
bzr revid: al@openerp.com-20110407234718-e2076zss3dp1z1m0
2011-04-08 01:47:18 +02:00
Antony Lesuisse 1fb7203f1c [MERGE] proto61
bzr revid: al@openerp.com-20110407234130-hyt5nxg5pqh2iyes
2011-04-08 01:41:30 +02:00
Xavier Morel 51bebb2cfe [REM] rip off jqgrid, start reimplementing manually
bzr revid: xmo@openerp.com-20110406135837-6rsuhiozd4af2qji
2011-04-06 15:58:37 +02:00