Commit Graph

239 Commits

Author SHA1 Message Date
Antony Lesuisse 7b158acee5 core refactoring, split core into corelib.js and coresetup.js
bzr revid: al@openerp.com-20120409003901-uo5wn6lj27yb6w7x
2012-04-09 02:39:01 +02:00
Xavier Morel a029cf244f [FIX] in a compound context, context n+1 has all of its preceding siblings in its evaluation context
bzr revid: xmo@openerp.com-20120405095009-v2i1xg8gf6lvigjv
2012-04-05 11:50:09 +02:00
Xavier Morel 239a118913 [FIX] compound domain and context's eval_context can be a compound itself, evaluate those if needs be
also fix tests html file for renames and extracts, and add a test case for complex non-literal evaluation contexts

bzr revid: xmo@openerp.com-20120404114830-a6416m2v7h8cyf08
2012-04-04 13:48:30 +02:00
Xavier Morel 514c63288c [FIX] change dataset.read_index to be implemented in terms of dataset.read_ids, not in terms of model.first() as not all model data is kept/transferred (filters are not bubbled?)
bzr revid: xmo@openerp.com-20120322142540-x3j9p7kub2px6p6v
2012-03-22 15:25:40 +01:00
Xavier Morel 190eb339fa [ADD] replacement for current aborter/abort_last hack: UDP-style handler of mis-ordered requests
* By default, ignores (refuses to resolve) mis-ordered request when they come back
* Optionally, fails them

bzr revid: xmo@openerp.com-20120301152315-67kbkdwpy7cdh25y
2012-03-01 16:23:15 +01:00
Xavier Morel e6f5d4c211 [ADD] Model API, reimplement DataSet/DataSetSearch on top of it (as much as possible)
TODO: traversal state API, removing even more method (e.g. completely remove DataSet.call in the Python API)

bzr revid: xmo@openerp.com-20120227135626-yxqh0gc6jwrdkshs
2012-02-27 14:56:26 +01:00
Xavier Morel b8efd17bbb [REM] todos
bzr revid: xmo@openerp.com-20120227102820-t5hmrrsbcd5pcw61
2012-02-27 11:28:20 +01:00
Xavier Morel db670cff7a Nonliteral domains, name_search w/ nonliteral domains
bzr revid: xmo@openerp.com-20120227102605-wvn1osn1wxgbdiio
2012-02-27 11:26:05 +01:00
Xavier Morel 859991dda7 [ADD] nonliterals in dataset tests
bzr revid: xmo@openerp.com-20120227085128-6ymxpa93pr59vjmb
2012-02-27 09:51:28 +01:00
Xavier Morel f67ddedd2a [ADD] read_slice spec tests
bzr revid: xmo@openerp.com-20120224122620-ji9h2sckpxx3kask
2012-02-24 13:26:20 +01:00
Xavier Morel 27dfa4d12b [ADD] a bunch of tests of the dataset API (translation of javascript dataset calls to XMLRPC ones)
bzr revid: xmo@openerp.com-20120224105753-hqf7o9xwwkc0xcok
2012-02-24 11:57:53 +01:00
Xavier Morel 0ff97e4929 [ADD] testing scaffold which does not hit the OpenERP server
bzr revid: xmo@openerp.com-20120223123416-2zvxy6nqbe9gdhhw
2012-02-23 13:34:16 +01:00
Xavier Morel a01c57c31f [FIX] handling of date and time formats with bare/literal characters
lp bug: https://launchpad.net/bugs/932448 fixed

bzr revid: xmo@openerp.com-20120215153237-4q1y6snebxk6sheh
2012-02-15 16:32:37 +01:00
Xavier Morel 9cc531505f [FIX] formatting of float_time fields
lp bug: https://launchpad.net/bugs/928220 fixed

bzr revid: xmo@openerp.com-20120208135655-79qnr5tl6admxr1e
2012-02-08 14:56:55 +01:00
Xavier Morel f70b73f244 [FIX] get_any with inheritance
bzr revid: xmo@openerp.com-20120208130651-7mdv7p1qcfgxczon
2012-02-08 14:06:51 +01:00
Xavier Morel f5ee468ca5 [REF] rename Registry#clone to Registry#extend
bzr revid: xmo@openerp.com-20120208124634-qucyuwlangw15nqh
2012-02-08 13:46:34 +01:00
Xavier Morel ff570e8d23 [IMP] have registries remain linked so alterations to a parent registry alters its clone as well (if keys are not overwritten in the child)
bzr revid: xmo@openerp.com-20120208124309-iho04vgae2nz6xix
2012-02-08 13:43:09 +01:00
Xavier Morel 69fdc31167 [FIX] jquery-ui URL in test file
bzr revid: xmo@openerp.com-20120208123915-cj5cujrpv41ilztm
2012-02-08 13:39:15 +01:00
niv-openerp 7760df3d44 [fix] problem with date and time parsing
bzr revid: nicolas.vanhoren@openerp.com-20120126152822-z98udmqoj1qc9cx6
2012-01-26 16:28:22 +01:00
Xavier Morel a23e7f362c [ADD] test edge cases for formatting float_time using Lorenzo Battistini's test cases
bzr revid: xmo@openerp.com-20120113092246-0dmh2khwj2748apo
2012-01-13 10:22:46 +01:00
Xavier Morel 8f4a0277ac [FIX] unbind handlers on records from a collection when the record is removed from the collection or the collection is reset
bzr revid: xmo@openerp.com-20120112170917-n6xadpzkbflk9s2c
2012-01-12 18:09:17 +01:00
Xavier Morel 5882ba65e3 [FIX] correctly format group header values
lp bug: https://launchpad.net/bugs/902302 fixed

bzr revid: xmo@openerp.com-20111212131534-z1a7c35c43u85c5g
2011-12-12 14:15:34 +01:00
Xavier Morel 53f60f0dea [FIX] parsing of UTC datetime data from server
lp bug: https://launchpad.net/bugs/902439 fixed

bzr revid: xmo@openerp.com-20111212123557-4bfqmgjnpkv0nsha
2011-12-12 13:35:57 +01:00
Xavier Morel 5f9c91621b [IMP] add some tests to format's intersperse (from corresponding server tests)
bzr revid: xmo@openerp.com-20111130100347-8jd8nugnjgtj12oj
2011-11-30 11:03:47 +01:00
Xavier Morel 90dfdbaf6a [FIX] Add tests for parsing integers and floats, fix parsing of floats in case user locale defines thousand separator as the dot
lp bug: https://launchpad.net/bugs/893575 fixed

bzr revid: xmo@openerp.com-20111129095958-966ikmsgf6zwamdh
2011-11-29 10:59:58 +01:00
Xavier Morel 19c123d831 [IMP] jquery from 1.6.2 to 1.6.4
bzr revid: xmo@openerp.com-20111125143918-ja5wjs00905d58uz
2011-11-25 15:39:18 +01:00
Xavier Morel ed665ec44e [IMP] update qunit to 1.2
bzr revid: xmo@openerp.com-20111125090145-3plxy4tr1l2nm3ne
2011-11-25 10:01:45 +01:00
Xavier Morel 998fd0dab6 [ADD] support for literal numbers in on_change specs
bzr revid: xmo@openerp.com-20111122124353-kfibt1cdvmy2pzp4
2011-11-22 13:43:53 +01:00
Xavier Morel 8f67c5c367 [ADD] support for string literals in form @on_change
lp bug: https://launchpad.net/bugs/889741 fixed

bzr revid: xmo@openerp.com-20111121124145-6i2kvesyc689g3ez
2011-11-21 13:41:45 +01:00
Xavier Morel 9d09c570ae [ADD] support for arguments-less onchange (why the hell not)
bzr revid: xmo@openerp.com-20111121122845-98lctm470ncttz74
2011-11-21 13:28:45 +01:00
Xavier Morel 95e2fcf884 [ADD] sanity tests for basic checking of onchange parsing
bzr revid: xmo@openerp.com-20111121122622-g6jzo74ctgc6r1hk
2011-11-21 13:26:22 +01:00
Xavier Morel 76a02ead76 [FIX] support 'thousands' separator for floats
lp bug: https://launchpad.net/bugs/886471 fixed

bzr revid: xmo@openerp.com-20111114155332-3on98ot7o808z0gi
2011-11-14 16:53:32 +01:00
Xavier Morel 42c7cb86d9 [FIX] support 'thousands' separator for integers
lp bug: https://launchpad.net/bugs/886471 fixed

bzr revid: xmo@openerp.com-20111114154510-r6bdi22cyygh72ak
2011-11-14 16:45:10 +01:00
Xavier Morel 4aafc01a3c [ADD] function to insert 'thousands' separators
bzr revid: xmo@openerp.com-20111114153436-pj6vq6lamfrjpg7f
2011-11-14 16:34:36 +01:00
Xavier Morel 7094859be3 [REM] can't be arsed to fix the broken date and time parsing tests
bzr revid: xmo@openerp.com-20111114144120-2rctezb1x63fytnr
2011-11-14 15:41:20 +01:00
Xavier Morel 9d4602fcb8 [FIX] unfuck formatting of negative floats
bzr revid: xmo@openerp.com-20111027125448-3wkk61xpt8uwjgt1
2011-10-27 14:54:48 +02:00
Xavier Morel 01897c8aa6 [FIX] completely broken float formatting when leading 0
Formatting converted the decimal part into an integer, dropping all
leading 0s and failing to reinsert them.

The conversion also lead to compounded errors, casting 0.1100 into
0.10999 (something like that).

Replace this by a straight float formatting via _.sprintf and the
slicing of the decimal part from the resulting string (Math.abs and %1
clamp the value to format to the [0, 1[ range, ensuring we just need
to slice off the first two characters). Also add some tests.

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

bzr revid: xmo@openerp.com-20111021120741-813im5bzup7vho1f
2011-10-21 14:07:41 +02:00
Xavier Morel 4da3e5d354 [FIX] tests runner: changed file names
bzr revid: xmo@openerp.com-20111021115018-0qbmhwhcjmckco0w
2011-10-21 13:50:18 +02:00
Antony Lesuisse bedfc48dcf rename base into web part1
bzr revid: al@openerp.com-20110905110309-egx167t1ni1fzho1
2011-09-05 13:03:09 +02:00