Commit Graph
141 Commits
Author SHA1 Message Date
Fabien Meghazi 4c83159797 [ADD] attrs support in form view
bzr revid: fme@openerp.com-20110328160530-qw2esi6pmin2p1mo
2011-03-28 18:05:30 +02:00
Fabien Meghazi bfba874832 [FIX] invisible tag is alias to attrs 'state', 'not in' instead of 'state', 'in'
bzr revid: fme@openerp.com-20110328100109-gmitlx4r9l1t3wnz
2011-03-28 12:01:09 +02:00
Xavier Morel 6b3b5fec2f [IMP] extract attributes normalization in its own method, add some comments and fix style a bit (y u use has_key?)
bzr revid: xmo@openerp.com-20110328083112-v2y9y2ith7gidq50
2011-03-28 10:31:12 +02:00
Xavier Morel 5294b046d9 [FIX] don't call /base/menu/action when the current menu does not have an id
bzr revid: xmo@openerp.com-20110325132351-tqzzmgqj9ldwzv54
2011-03-25 14:23:51 +01:00
Xavier Morel 47fa3b4a5f [IMP] style fixes, just .data() jquery method instead of .attr('data-*'): shorter and parses integers without having the need to do so manually
[Every attempt is made to convert the string to a JavaScript value (this includes booleans, numbers, objects, arrays, and null) otherwise it is left as a string. To retrieve the value's attribute as a string without any attempt to convert it, use the attr() method. ]

bzr revid: xmo@openerp.com-20110325132115-25ey6y08zc1bjk1q
2011-03-25 14:21:15 +01:00
Fabien Meghazi 78f759622f [IMP] Remove unused line
bzr revid: fme@openerp.com-20110325080108-7c155e8xc27m0zvb
2011-03-25 09:01:08 +01:00
Xavier Morel ddaf85e1b3 [MERGE] favicon fix
bzr revid: xmo@openerp.com-20110324211157-mb9ehmr4nd4bo354
2011-03-24 22:11:57 +01:00
Xavier Morel 73343295fa [FIX] Label widget rendering breaking on actual label elements/widgets (e.g. opportunities form)
bzr revid: xmo@openerp.com-20110324210347-1tnqjpzu22zr0vzw
2011-03-24 22:03:47 +01:00
Xavier Morel d6979759fa [FIX] shut up the annoying console spamming by default. To enable it, set 'openerp.debug' to true or add 'debug' at the start of the querystring
bzr revid: xmo@openerp.com-20110324204813-09wdb7k3m5h7asca
2011-03-24 21:48:13 +01:00
Xavier Morel 885cab6230 [FIX] use LABjs to load scripts to avoid recurring 'TypeError: Result of expression 'openerp._openerp[mod]' [undefined] is not a function.'
Might not be the best loader, not sure, but we only use it in two places so it's trivial to replace. It's also one of the oldest loaders so it should be pretty stable.

bzr revid: xmo@openerp.com-20110324203538-bk59e8wbiux47e7j
2011-03-24 21:35:38 +01:00
Fabien Meghazi a75c048ede [ADD] Transformation of fields view get during parsing. See http://pad.openerp.com/discoveries
bzr revid: fme@openerp.com-20110324201125-in8wgrad51aljoej
2011-03-24 21:11:25 +01:00
Fabien Meghazi d981f1413f [FIX] Secondary menu content has scrollbar under firefox
bzr revid: fme@openerp.com-20110324201018-tczdnrobb1jr3c28
2011-03-24 21:10:18 +01:00
Fabien Meghazi 196f6f6ec8 [FIX] Using js keywords for object keys is a bad idea (of fme)
bzr revid: fme@openerp.com-20110324200858-36lh8ioqdd2m6su1
2011-03-24 21:08:58 +01:00
Antony Lesuisse cce35c01e1 viewmanager typo
bzr revid: al@openerp.com-20110324163449-26amfxhsx03h72jg
2011-03-24 17:34:49 +01:00
Antony Lesuisse 506a85c80e viewmanager part1
bzr revid: al@openerp.com-20110324163114-dvoi8l3nzmut5y63
2011-03-24 17:31:14 +01:00
Xavier Morel a51d1c0c49 [FIX] trailing comma
bzr revid: xmo@openerp.com-20110324071652-8i6rnyb9drkmsbb5
2011-03-24 08:16:52 +01:00
Antony Lesuisse b507d2231f loud thinking about viewmanager
bzr revid: al@openerp.com-20110324010814-n8hk09002jfq65eg
2011-03-24 02:08:14 +01:00
Xavier Morel c6aab663bc [FIX] rst rtype specification for a bare list is the constructor name
bzr revid: xmo@openerp.com-20110323122217-ehqru2nu2iq2jhvj
2011-03-23 13:22:17 +01:00
Xavier Morel 1d587145de [IMP] fix docstrings on DataSet, insert into internal APIdoc (and fix documentation PYTHONPATH to generate this correctly)
bzr revid: xmo@openerp.com-20110323122126-3qj7vkhjsc6l0x5x
2011-03-23 13:21:26 +01:00
Xavier Morel 801fae18ca [ADD] implement forgotten DataSet.get RPC method, test it a bit
bzr revid: xmo@openerp.com-20110323120806-uhas8xvxnpsa1dm2
2011-03-23 13:08:06 +01:00
Xavier Morel 65c8aaf78b [ADD] some doc for the dataset
bzr revid: xmo@openerp.com-20110323105031-9j2s5d2g8kxwf9wu
2011-03-23 11:50:31 +01:00
Xavier Morel 2594a8cad6 [ADD] tests for DataSet.(do_)find
bzr revid: xmo@openerp.com-20110323090801-vx75gc5vk0hx71og
2011-03-23 10:08:01 +01:00
Xavier Morel 3d65a024d2 [IMP] implement DataSet.find, rename .ids() to .fetch() (and the corresponding event), make list and form views use the new dataset API
bzr revid: xmo@openerp.com-20110323083441-ego3wphgpb94obrg
2011-03-23 09:34:41 +01:00
Xavier Morel 1284858cb1 [ADD] get_active_id, use API functions more instead of internals in DataSet
bzr revid: xmo@openerp.com-20110323075429-ek9bvxs6vzoxcqlc
2011-03-23 08:54:29 +01:00
Xavier Morel 99f90b17a2 [FIX] split selection of a range of ids and activation of a single id into two methods, write some tests
bzr revid: xmo@openerp.com-20110323072712-10gohth1mxrgh6o1
2011-03-23 08:27:12 +01:00
Xavier Morel 8570ae1fff [IMP] use asyncTest rather than test + stop()
bzr revid: xmo@openerp.com-20110322205218-h2skfkandip8pv8u
2011-03-22 21:52:18 +01:00
Xavier Morel 77b9c7bd8b [ADD] basic implementations of DataSet.select and DataSet.active_ids
bzr revid: xmo@openerp.com-20110322203644-iubno2jusxp4z98p
2011-03-22 21:36:44 +01:00
Xavier Morel 6a4fc40d53 [ADD] finish documenting QUnit functions (for IDEs)
bzr revid: xmo@openerp.com-20110322192208-8usouja1b665s1mm
2011-03-22 20:22:08 +01:00
Xavier Morel efa2ac2939 [ADD] ids and set methods on DataSet
bzr revid: xmo@openerp.com-20110322191043-d2s7qz2riuv7tjkd
2011-03-22 20:10:43 +01:00
Xavier Morel 16cbdc2a90 [ADD] Be Stubborn. Obey the Goat.
Basic testing infrastructure for the base addon JS

bzr revid: xmo@openerp.com-20110322141117-7htmchkc4pyus3e2
2011-03-22 15:11:17 +01:00
Fabien Meghazi 8284359b83 [IMP] Improved FieldChar widget
bzr revid: fme@openerp.com-20110322171801-e5jmov41xg3pnzfz
2011-03-22 18:18:01 +01:00
Fabien Meghazi 1fb6165a8a [FIX] ListView table autoresize
bzr revid: fme@openerp.com-20110322135026-ndme63lh7pa98c03
2011-03-22 14:50:26 +01:00
Xavier Morel 9f74d6d07c [ADD] underscore utility library. See http://documentcloud.github.com/underscore/ for documentation
bzr revid: xmo@openerp.com-20110322131559-afci46oyqecw571s
2011-03-22 14:15:59 +01:00
Fabien Meghazi 6369c843bb [AUTOINSULT] Previous commit was a mistake.
I made two mistakes in my life : 1) to be born   2) to commit fme@openerp.com-20110322125836-qnlqagrlcy3ajoci

I could avoid the second one if I had not made the first mistake

bzr revid: fme@openerp.com-20110322130917-2y6kmrwcqutia8ph
2011-03-22 14:09:17 +01:00
Fabien Meghazi a5a90d2261 [UP] Upgraded jQuery 1.5 tp 1.5.1. (200% web client speed upgrade)
Closed Tickets

A full list of all bugs and tickets closed are as follows:

#2551 Make sure .val() works after form.reset() in IE
#4537 Make sure .clone(true) correctly clones namespaced events
#4966 Don’t add “px” to unit-less properties when animating them
#6774 Make sure we only access parentNode if it’s available. Fixes an issue where after an option tag has been detached, an elem.parentNode error would be thrown.
#6911Prevent action on disabled elements, both triggering and bound via .live()
#7531 Fix again for IE9RC. Enhances ajaxSetup so that it can take an optional target option, in which case target will be updated instead of ajaxSettings. That way, fields that shouldn’t be deep extended can be listed and dealt with in one place. jQuery.ajax now makes use of ajaxSetup with target to create its internal settings object
#7568 Follow-up fix for #5862. Objects with a length property weren’t serialized properly by jQuery.param
#7653 Changes regexp to detect local protocol so that it will accept any protocol finishing by -extension
#7668 Sizzle and jQuery QUnit tests are out of sync
#7912 This change makes .cur() more .cssHooks friendly. .cur() now returns the unmodified value by .css() if it isn’t a number, number-alike or a value that needs a fallback to 0.
#7922 Fixed an issue where live(‘click’) doesn’t fire when live(‘submit’) is bound first in IE
#7945 Make jQuery.param() serialize plain objects with a property named jquery correctly
#8033 jQuery 1.4.4+ fails to load on pages with old Prototype (<= 1.5) or Current Prototype + Scriptaculous in IE
#8039 Selectors with HTML5 input types not work in IE6/7
#8052 Update jQuery.support.noCloneEvent test to function properly in IE9
#8095 Properly handles the case where browser cache needs to be bypassed while server-side logic still delivers proper 304 responses. Unit test added
#8098 Use the fast document.head when available
#8099 Always restore to correct display value based on element’s expected default display
#8107 Fix argument handling for $.ajax for multiple method signatues and add test case
#8108Temporary fix for jQuery metadata being exposed on plain JS objects when serializing with JSON.stringify to avoid compatibility-breaking changes. A proper fix for this will be landed in 1.6
#8115 Renames all references to jXHR with jqXHR in the code (like was done in the doc)
#8123 The default for .clone() is to not clone any events
#8125 Status is set to 200 for requests with status 0 when location.protocol if “file:”. Added test/localfile.html to control it works
#8129 Fix cloning multiple selected options in IE8
#8135 Makes sure any exception thrown by Firefox when trying to access an XMLHttpRequest property when a network error occured is caught and notified as an error. Added test/networkerror.html to test the behavior
#8138 Access to document.location is made only once at load time and if it fails (throwing an exception in IE when document.domain is already set), we use the href of an A element instead
#8145 Added readyWait tests
#8146 introducing the xhrFields option with is a map of fieldName/fieldValue to set on the native xhr. Can be used to set withCredentials to true for cross-domain requests if needed
#8152 applying the same special cases for protocol “chrome-extension:” as were for “file:” (needs tests). Re-organizes and fixes the handling of special cases for HTTP status code in the xhr transport
#8177 XHR transport now considers 304 Not Modified responses as 200 OK if no conditional request header was provided (as per the XMLHttpRequest specification)
#8193 Fixes abort in prefilter. No global event will be fired in that case even if the global option is set to true. Unit test added
#8198 Remove unnecessary “script.type = text/javascript;”
#8200 Unexpose $.support._scriptEval as it’s not needed. Use a private var instead
#8209 Make sure that mousing over Chrome “internal div” doesn’t trigger a mouseleave
#8219 Introduces the mimeType option to override content-type header in conversion (and in native xhr when possible). Adds companion overrideMimeType method on jqXHR object (it simply sets the option)
#8220 Remove backslashes from tag name filter
#8245 Ajax now ensures header names are capitalized so that non-compliant xhr implementations don’t override them
#8250 ajax does not work in opera 10 widgets
#8277 Sets data to undefined rather than null when it is not provided in ajax helpers so that it won’t revent data set in ajaxSettings from being used.
#8297 Make sure response headers with empty values are handled properly and do not prevent proper parsing of the entire response headers string.
#8353 Adds a catch block in resolveWith so that the finally block gets executed in IE7 and IE6.
#8365 Make sure that IE 9 still clones attributes.

bzr revid: fme@openerp.com-20110322125836-4id2l1w0zjix0qdt
2011-03-22 13:58:36 +01:00
Fabien Meghazi c7ce5c80a7 [ADD] Menu part 1
bzr revid: fme@openerp.com-20110322114919-a8l2k4ipy6zt4si8
2011-03-22 12:49:19 +01:00
Fabien Meghazi e4b925112f [ADD] url widget
bzr revid: fme@openerp.com-20110322114852-4o14wjiebb2yv90c
2011-03-22 12:48:52 +01:00
Fabien Meghazi f2af3b5a05 [ADD] Some images for menus
bzr revid: fme@openerp.com-20110322114702-53smckfk1uc0tzz5
2011-03-22 12:47:02 +01:00
Xavier Morel 3b3494b27e [FIX] rooted application menus incorrectly, fixed tests
bzr revid: xmo@openerp.com-20110321154034-tqd03u8u7tpxm5vc
2011-03-21 16:40:34 +01:00
Antony Lesuisse d40743d0e3 [MERGE] xmo python unit tests
bzr revid: al@openerp.com-20110321135427-fb6w9c3lexsdautw
2011-03-21 14:54:27 +01:00
Xavier Morel 7b92ab4328 [MERGE] reformatting of some python code, fix of JS warnings (trailing commas and missing semicolons), fix extraction of 'full' class name, removal of the Hello controller and addition of a doc skeleton for differences between the old and the new web client
bzr revid: xmo@openerp.com-20110321122922-t48omtc7ebahjhzg
2011-03-21 13:29:22 +01:00
Xavier Morel 3d02b3f804 [ADD] tests for base.controllers.main.Menu.load
* Make model factory pluggable in OpenERPSession (so it's possible to mock the models handler)
* Split load between the JSON-RPC handler and the actual logic
* Add some docstring to Menu.do_load

bzr revid: xmo@openerp.com-20110321104735-9hmrsyoccueya9fh
2011-03-21 11:47:35 +01:00
Fabien Meghazi 2a1aa4d1ba [ADD] jQuery UI css override
bzr revid: fme@openerp.com-20110321094645-m8r8f4jvnn3o7pme
2011-03-21 10:46:45 +01:00
Xavier Morel f201393fa4 [IMP] reformat Menu
bzr revid: xmo@openerp.com-20110321084324-0b3it36uhxk44lc8
2011-03-21 09:43:24 +01:00
Xavier Morel e9854573d1 [REM] old Hello controller
bzr revid: xmo@openerp.com-20110321081419-e2mv119gfm5kbaem
2011-03-21 09:14:19 +01:00
Xavier Morel 99f29c8202 [IMP] reformat python code in core and base
bzr revid: xmo@openerp.com-20110321081331-gvgb1qt6v80oq5hm
2011-03-21 09:13:31 +01:00
Xavier Morel 375b44e1ca [MERGE] a few warning fixes, addition of more documentation skeleton
bzr revid: xmo@openerp.com-20110321073043-swu1sj1u6tvysrmk
2011-03-21 08:30:43 +01:00
Antony Lesuisse a0e1cbd7e7 session management cleanups, clarification of start() semantics
bzr revid: al@openerp.com-20110320200117-q37q76y53sbmdfy3
2011-03-20 21:01:17 +01:00
Antony Lesuisse fd047b34ca [MERGE] xmo proper session management
bzr revid: al@openerp.com-20110320132146-qysfemcluvraa4ww
2011-03-20 14:21:46 +01:00
Xavier Morel b44fdabb9a [FIX] trailing commas and missing semicolons
bzr revid: xmo@openerp.com-20110318165821-5zyvlfzi7xt25gu0
2011-03-18 17:58:21 +01:00