Commit Graph

598 Commits

Author SHA1 Message Date
Xavier Morel ff19bed2b3 [FIX] the keyup event using the return key on a selection widget should not propagate if that [Return] press changed the widget's value
bzr revid: xmo@openerp.com-20110708123853-znak06wgm4uvoi7q
2011-07-08 14:38:53 +02:00
Xavier Morel fe88c437fe [IMP] correctly use underscore, remove 4 useless lines
bzr revid: xmo@openerp.com-20110708113704-lulvihowvrd7zhkg
2011-07-08 13:37:04 +02:00
niv-openerp b4d3c937ad [fix] small problem in field selection
bzr revid: nicolas.vanhoren@openerp.com-20110707154649-u6djzfim3wc9zg97
2011-07-07 17:46:49 +02:00
Fabien Meghazi 8c08d3841b [REM] Removed use of attrs and replaced it with modifiers
bzr revid: fme@openerp.com-20110707142948-8fs7g42488usa3pd
2011-07-07 16:29:48 +02:00
niv-openerp 17f3714bad [fix] many problems in selection fields, not handling correctly false value & not compatible with m2o
bzr revid: nicolas.vanhoren@openerp.com-20110707141924-xx2ya1d53t2valw5
2011-07-07 16:19:24 +02:00
Fabien Meghazi aa1ae20796 [FIX] Always open action target=current in new tab/window for actions triggered by buttons
bzr revid: fme@openerp.com-20110707141641-08ooxxj8qc67ucpg
2011-07-07 16:16:41 +02:00
Xavier Morel f8c1e9819c [IMP] row(s) removal in list views: don't reload the whole list, just drop the relevant (or not relevant anymore) rows
lp bug: https://launchpad.net/bugs/805550 fixed

bzr revid: xmo@openerp.com-20110707134843-vj1yrmcffsuuc0aa
2011-07-07 15:48:43 +02:00
Fabien Meghazi f0f386e748 [REM] Removed use of attrs and replaced it with modifiers
Warning ! You need server Revision: 3497 revid:vmt@openerp.com-20110705122222-bhim9uft3l3sqee8

bzr revid: fme@openerp.com-20110707103740-4m6vrj18wfi2hacy
2011-07-07 12:37:40 +02:00
niv-openerp 3969cdd265 [fix] some concurrency problem with o2m & m2m
bzr revid: nicolas.vanhoren@openerp.com-20110707090721-70hamcwp2p2xemrg
2011-07-07 11:07:21 +02:00
Fabien Meghazi 74da6f234e [ADD] Added form widget integer
bzr revid: fme@openerp.com-20110707085515-43cjuvemtkpjgy8z
2011-07-07 10:55:15 +02:00
Xavier Morel 1847dbc017 [MERGE] list pagination branch
bzr revid: xmo@openerp.com-20110706083214-1thifexcz5pk0jih
2011-07-06 10:32:14 +02:00
Xavier Morel d44af4944d [FIX] groupby, broken at revision nicolas.vanhoren@openerp.com-20110629103046-rbsy0m6pke3ytqyl by a change in RPC response format for handlers added on ajax promise
Previously, callbacks passed as parameters to the RPC ajax call would receive only the result key of the json-rpc response (aka the part worth using), but callbacks added to the promise (via .then, .done or .fail) would get the whole json-rpc response (due to getting the jQuery ajax promise itself and not going through the json-rpc translation layer) and would need to add an indirection via xhr_response.result.

This was fixed in nicolas.vanhoren@openerp.com-20110629103046-rbsy0m6pke3ytqyl, but the relevant code in ContainerDataGroup.fetch was not fixed, would still go through the indirection and would therefore return an empty list (of groups) to the listview, leading to no groups being displayed

bzr revid: xmo@openerp.com-20110706072324-io03rcd33qwtxo3w
2011-07-06 09:23:24 +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 fa9c2829d0 [FIX] value-content tests on set_value for some widgets
note: NaN != NaN, need to use isNaN

bzr revid: xmo@openerp.com-20110704121057-k9vrgim1pfc1g8u1
2011-07-04 14:10:57 +02:00
niv-openerp ec5f22eaeb [imp] removed checkbox to save password in login page
bzr revid: nicolas.vanhoren@openerp.com-20110704153259-cbz2qz0a95x53and
2011-07-04 17:32:59 +02:00
niv-openerp 20ceff1444 [fix] changed domain handling in select create popup and added non-selection of already selected rows in m2m
bzr revid: nicolas.vanhoren@openerp.com-20110704152027-z1tgamwz0uo8v5ml
2011-07-04 17:20:27 +02:00
niv-openerp 17ee1786b1 [imp] small cosmetic improvements in m2o
bzr revid: nicolas.vanhoren@openerp.com-20110704150554-6rbrd63h0qunz84n
2011-07-04 17:05:54 +02:00
niv-openerp c0ef247865 [imp] made o2m & m2m non multi selectable
bzr revid: nicolas.vanhoren@openerp.com-20110704150017-no4glzx2h7omkacr
2011-07-04 17:00:17 +02:00
niv-openerp 433c989399 [imp] minor: changed level of some logging
bzr revid: nicolas.vanhoren@openerp.com-20110704143035-iwmbqfy0gifdnllm
2011-07-04 16:30:35 +02:00
niv-openerp efdfe7731d [fix] fixed some problem with on_change and warnings
bzr revid: nicolas.vanhoren@openerp.com-20110704114131-kusycqhnkvyd8ye8
2011-07-04 13:41:31 +02:00
niv-openerp ee1ec9dae7 [fix] problem with context handling in on_change when there is no context
bzr revid: nicolas.vanhoren@openerp.com-20110704113740-fv3s5wrzlnkagpuv
2011-07-04 13:37:40 +02:00
niv-openerp 59f75a3eae [fix] warning message in form not handling correctly all cases
bzr revid: nicolas.vanhoren@openerp.com-20110704111134-juo51t5rxo5vdt0w
2011-07-04 13:11:34 +02:00
niv-openerp 5363cc4f0b [fix] problem with on_change and parent
bzr revid: nicolas.vanhoren@openerp.com-20110704094855-q2aytq7xna3nxftq
2011-07-04 11:48:55 +02:00
niv-openerp f21e145cf8 [fix] problem with on_change and contexts
bzr revid: nicolas.vanhoren@openerp.com-20110704091247-1er8ulga0xl4boo4
2011-07-04 11:12:47 +02:00
niv-openerp c8e8b7cc26 [fix] small bug with o2m & editable lists
bzr revid: nicolas.vanhoren@openerp.com-20110704083858-n9d4bopimfmhdg32
2011-07-04 10:38:58 +02:00
niv-openerp b3f48d4432 [fix] possible issue with rpc
bzr revid: nicolas.vanhoren@openerp.com-20110701120025-nzv1gmm19fn5uo9t
2011-07-01 14:00:25 +02:00
niv-openerp a8e6836f3c [imp] refactoring related to the usage of dataset.context
bzr revid: nicolas.vanhoren@openerp.com-20110701115912-40hkax6c4s28quop
2011-07-01 13:59:12 +02:00
niv-openerp 320601a54f [imp] added context handling in m2m
bzr revid: nicolas.vanhoren@openerp.com-20110701102727-rxuv241pea5w9xhh
2011-07-01 12:27:27 +02:00
niv-openerp 3c4330da9c [fix] forgot on_ui_change in m2m
bzr revid: nicolas.vanhoren@openerp.com-20110701101349-l1n2o0y59ucywm13
2011-07-01 12:13:49 +02:00
Xavier Morel fcc0a982f5 [FIX] form attachments: don't call dataset/search_read directly
bzr revid: xmo@openerp.com-20110624133459-3kiiik9ffbtcibew
2011-06-24 15:34:59 +02:00
Xavier Morel b309810e14 [IMP] make paginator work correctly on groups
bzr revid: xmo@openerp.com-20110624130713-65wt8r7cmzo4wdor
2011-06-24 15:07:13 +02:00
Xavier Morel d567ba23ad [ADD] display inactive pager on group title rows in grouped lists
bzr revid: xmo@openerp.com-20110624111339-2jh8gm8r2l33iifb
2011-06-24 13:13:39 +02:00
Xavier Morel 3b6d9c7886 [FIX] don't enable pagination on the main list in the case of grouped lists
bzr revid: xmo@openerp.com-20110623144306-mq31g5jbdqn2txcp
2011-06-23 16:43:06 +02:00
Xavier Morel 5f339ee830 [IMP] page size switcher for list views, fix handling and display of pagination in case of unlimited page size (limit = (0 | undefined | null))
bzr revid: xmo@openerp.com-20110623134920-i8rfy4ggcb7kt7h4
2011-06-23 15:49:20 +02:00
Xavier Morel 52a6119cb4 [ADD] list-level pagination on list views
bzr revid: xmo@openerp.com-20110623124641-kzvkmx7fxe0xwn6w
2011-06-23 14:46:41 +02:00
Xavier Morel d530b966c9 [FIX] convert fixed ids in list view to classes (ids should either be generated or not used since each view can be instantiated several times in the same page)
bzr revid: xmo@openerp.com-20110623105404-baomtfarfflb5kd7
2011-06-23 12:54:04 +02:00
Xavier Morel 3099c30221 [IMP] move and rename ListView.List.get_fields_view: its actual role is to transmogrify the listview's view descriptor so that we can use it in a form view, so it's only for editable lists, and it should reflect its actual task in its name.
Also add some doc.

bzr revid: xmo@openerp.com-20110623105002-vnznqit790p5gv48
2011-06-23 12:50:02 +02:00
Xavier Morel e8526ae9f1 [ADD] load lists paginated
bzr revid: xmo@openerp.com-20110622153626-zscyr6natsmvb726
2011-06-22 17:36:26 +02:00
Xavier Morel 1e0fc68cad [IMP] rpc search_read and internal managment of DataSetSearch.read_slice to better handle pagination
* /base/dataset/search_read now returns a dict of {ids, records} where ids are *not* paginated and is an ordered sequence of all the ids matching the unpaginated search criteria (domain, context, sort)
    records is the old toplevel result: an ordered, paginated sequence of the records read (with fields correctly selected and everything)
* Removed context param to search_read since context comes from request object

bzr revid: xmo@openerp.com-20110622145559-3r2jszyddvbsz3hq
2011-06-22 16:55:59 +02:00
Fabien Meghazi 6e40e0aaa1 [FIX] Form view does not send back untouched fields with default value when saving record
bzr revid: fme@openerp.com-20110622155943-ex7p9a97fkhdaxio
2011-06-22 17:59:43 +02:00
Fabien Meghazi cbf9300f23 [IMP] Improved CrashManager
bzr revid: fme@openerp.com-20110622145757-52ffxs6cj8m0jpnb
2011-06-22 16:57:57 +02:00
niv-openerp 58291d4ab6 [imp] added unlink to dataset and list_view (currently just reloads the whole list)
bzr revid: nicolas.vanhoren@openerp.com-20110622144916-cst2ad1s0gtchlxi
2011-06-22 16:49:16 +02:00
Fabien Meghazi 19aa4e05c2 [IMP] In ViewManager, do not instanciate search view when action.search_view == false
bzr revid: fme@openerp.com-20110622134320-ejkh13tbyhsd7wce
2011-06-22 15:43:20 +02:00
Fabien Meghazi 94761577b4 [IMP] Improved fields focus
bzr revid: fme@openerp.com-20110622122542-ji3zt1fy9hc3qwgk
2011-06-22 14:25:42 +02:00
Fabien Meghazi f1eb252cf3 [ADD] Added openerp.base.json_node_to_xml for debugging purpose (might be usefull for xml view editor)
bzr revid: fme@openerp.com-20110622111129-qn5r1v7da6exfkfd
2011-06-22 13:11:29 +02:00
Xavier Morel d2e6fed86e [FIX] When using return on an action button, triggers both click and keyup, so we have to disable keyup as well on buttons in editable list, or it gets forwarded to the list itself (and executes action + double saves)
bzr revid: xmo@openerp.com-20110622110946-zcofe237nkglu8w1
2011-06-22 13:09:46 +02:00
Xavier Morel c0e985352c [FIX] form's attachments loading so it goes through DataSetSearch instead of calling search_read directly
bzr revid: xmo@openerp.com-20110622110026-s7t7kf7mhaamhc77
2011-06-22 13:00:26 +02:00
Fabien Meghazi 6102406eea [REM] Removed debug remains, sorry everyone
bzr revid: fme@openerp.com-20110630140817-65xvlcqia2b6m9xw
2011-06-30 16:08:17 +02:00
niv-openerp 1712ad5dea [imp] refactoring of context/domain + optimisations + added context in on_change
bzr revid: nicolas.vanhoren@openerp.com-20110630130713-a3relc19bpehg94s
2011-06-30 15:07:13 +02:00
niv-openerp eceae3def4 [merge]
bzr revid: nicolas.vanhoren@openerp.com-20110630123204-nhccni0tvm1bk4bb
2011-06-30 14:32:04 +02:00