niv-openerp
ab56c9a9ae
[MERGE] Little improvement to BaseWidget.
...
bzr revid: nicolas.vanhoren@openerp.com-20110330084835-arzwrgcucsxepi5z
2011-03-30 10:48:35 +02:00
niv-openerp
d438b37475
[IMP] Improved BaseWidget.
...
bzr revid: nicolas.vanhoren@openerp.com-20110330084752-krewtpl8w0wov1f7
2011-03-30 10:47:52 +02:00
Fabien Meghazi
b2d921759c
[CHANGE] Refactored form view (WIP)
...
bzr revid: fme@openerp.com-20110329163437-08373sb1eck11lhy
2011-03-29 18:34:37 +02:00
Antony Lesuisse
16f85c2e2d
[MERGE] niv custom filters
...
bzr revid: al@openerp.com-20110329152425-580vhch31f8cmy6v
2011-03-29 17:24:25 +02:00
niv-openerp
97e63b9e57
[IMP] Improved BaseWidget.
...
bzr revid: nicolas.vanhoren@openerp.com-20110329144623-vnxtfc9ouclkq5sa
2011-03-29 16:46:23 +02:00
niv-openerp
c8469427c4
[IMP] Wip extended filters. Is functional. Still need to improve design, allow to save and implement all data types.
...
bzr revid: nicolas.vanhoren@openerp.com-20110329143525-3nhtrgrpgkykg7s9
2011-03-29 16:35:25 +02:00
niv-openerp
301d170ef8
[IMP] Cleaned code of extended filters.
...
bzr revid: nicolas.vanhoren@openerp.com-20110329142217-zfp5b3lw19f8bzsf
2011-03-29 16:22:17 +02:00
niv-openerp
ae3ee42fd0
[FIX] Bug with propositions.
...
bzr revid: nicolas.vanhoren@openerp.com-20110329135922-nswtf2zq5reby27f
2011-03-29 15:59:22 +02:00
niv-openerp
06c6a18d10
[IMP] Extended filters wip. Now generates domains.
...
bzr revid: nicolas.vanhoren@openerp.com-20110329131854-m2d2fjwm3d566su2
2011-03-29 15:18:54 +02:00
Antony Lesuisse
8a59852690
LABjs dont use preloading to ease debugging
...
bzr revid: al@openerp.com-20110329130728-feb1c35y331jvqgl
2011-03-29 15:07:28 +02:00
Antony Lesuisse
b700dcf63f
[MERGE] xmo search views
...
bzr revid: al@openerp.com-20110329125042-5vaketmxekhv4r39
2011-03-29 14:50:42 +02:00
Xavier Morel
5fc3bf26df
[ADD] handle validation at the searchview level, instead of blowing up the whole thing by letting Invalid errors bubble up
...
bzr revid: xmo@openerp.com-20110329104744-601os9hafz5mp7z1
2011-03-29 12:47:44 +02:00
niv-openerp
7af4d63d0c
[IMP] Prototype base class for widgets.
...
bzr revid: nicolas.vanhoren@openerp.com-20110329091001-u76p5psmpi70me3t
2011-03-29 11:10:01 +02:00
Xavier Morel
c3d74fe290
[ADD] handling of own values on fields (e.g. self, values which are used to evaluate the field's context and domain, but not any other field's)
...
Also fix bugs in fields_view_get: didn't evaluate filter_domain to a nonliteral Domain (or a literal domain dict)
bzr revid: xmo@openerp.com-20110329090941-av5ymojubq23yjim
2011-03-29 11:09:41 +02:00
Xavier Morel
f15f180777
[ADD] some documentation on the search view
...
bzr revid: xmo@openerp.com-20110328194809-yw0oyo6db5iyy1tk
2011-03-28 21:48:09 +02:00
niv-openerp
1e908843ee
[IMP] Extended filters wip.
...
bzr revid: nicolas.vanhoren@openerp.com-20110328164945-xdsmfq233cxlxggy
2011-03-28 18:49:45 +02:00
Xavier Morel
7b711fd117
[ADD] group_by support in search views (not handled yet by the view manager and list view, so they have no actual effect)
...
bzr revid: xmo@openerp.com-20110328163917-5deq43o7jwotfpym
2011-03-28 18:39:17 +02:00
Fabien Meghazi
4c83159797
[ADD] attrs support in form view
...
bzr revid: fme@openerp.com-20110328160530-qw2esi6pmin2p1mo
2011-03-28 18:05:30 +02:00
niv-openerp
5b477c1464
[IMP] Extended filters wip.
...
bzr revid: nicolas.vanhoren@openerp.com-20110328124247-mb723pentlpimb1z
2011-03-28 14:42:47 +02:00
niv-openerp
f4518c1f07
[FIX] Changed LabJs configuration to workaround a bug in Chrome that made debugging unusable.
...
bzr revid: nicolas.vanhoren@openerp.com-20110328090339-vr6nkw4vce2jr1by
2011-03-28 11:03:39 +02:00
niv-openerp
cf4fda9764
[IMP] Modified search view to factorise expanding functionality.
...
bzr revid: nicolas.vanhoren@openerp.com-20110328073722-stytrmyog74ikar5
2011-03-28 09:37:22 +02:00
Xavier Morel
ab43c4ee48
[IMP] filters probably should not trigger a re-search themselves, they should report their toggling to their controller instead
...
bzr revid: xmo@openerp.com-20110325155917-8j1ns332tgzf5kvf
2011-03-25 16:59:17 +01:00
niv-openerp
8b21ed5ade
[IMP] Added beginning of extended views.
...
bzr revid: nicolas.vanhoren@openerp.com-20110325151120-rwtxizs9rci24k1p
2011-03-25 16:11:20 +01:00
Xavier Morel
1938cda158
[MERGE] fixes from trunk for annoying no-id-menu click
...
bzr revid: xmo@openerp.com-20110325133359-kjcjrhgu9niyjyw5
2011-03-25 14:33:59 +01: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
Xavier Morel
4320d25dbd
[FIX] loading of data in grid (reload it correctly, ideally we should only replace rows we didn't already have, something like that...)
...
bzr revid: xmo@openerp.com-20110325130818-wgg4x3dgxsgdpkqy
2011-03-25 14:08:18 +01:00
Xavier Morel
2bceb3a18b
[FIX] IntegerField should not fail to validate when left empty. Also, until they're actually implemented relational field widgets should be Integer fields, not just fields
...
bzr revid: xmo@openerp.com-20110325124315-k8tpt2cpwhohlljm
2011-03-25 13:43:15 +01:00
Xavier Morel
a5d2c95cc1
[FIX] field contexts are lists of lists, not just lists (otherwise the evaluator gets screwy)
...
bzr revid: xmo@openerp.com-20110325124223-2q0li224uhogy52s
2011-03-25 13:42:23 +01:00
Xavier Morel
632d93afa7
[ADD] evaluation of search contexts and domains, hook ViewManager to the dataset in order to perform the correct search.
...
I'm pretty sure there's a race condition somewhere in there, in the initial loading of the whole mess I bet we can have the auto_search triggering before the list controller is done loading...
We probably need some deferred (one for each searchable view in the manager + one for the searchview itself) and a final one waiting on them all (I don't think jquery's deferred can do that built-in) before launching the auto_search
bzr revid: xmo@openerp.com-20110325123252-fjrgj4aicac3fo3b
2011-03-25 13:32:52 +01:00
Xavier Morel
9760d629a5
[FIX] timing issue with the ViewManager triggering a search on auto_search
...
* search should be performed after on_loaded has executed, otherwise no data is available (rendering hasn't even happened)
* don't offload start()ing all the widgets via a setTimeout/defer, otherwise need intermediate callback (for when the view is rendered but the widgets are not loaded) to keep ViewManager in sync
* fix preventDefault condition on SearchView DOM event handlers: only try to preventDefault() if there is a first argument *and it has a preventDefault attribute*
bzr revid: xmo@openerp.com-20110325105151-wkdf8llenaqlffhn
2011-03-25 11:51:51 +01:00
Xavier Morel
0f4a950db1
[FIX] no 'not' operator in QWeb conditions, use 'bzr cdiff'
...
bzr revid: xmo@openerp.com-20110325104847-1lkv0jkbkhemju2x
2011-03-25 11:48:47 +01:00
Xavier Morel
049964817d
[FIX] handle default values setting on search view
...
bzr revid: xmo@openerp.com-20110325103425-ag08qufuavok6kz0
2011-03-25 11:34:25 +01:00
Xavier Morel
32f9914ebd
[FIX] typo
...
bzr revid: xmo@openerp.com-20110325081613-1i8ns180e84hmz9p
2011-03-25 09:16:13 +01:00
Xavier Morel
f03f6115e4
[IMP] hook search into ViewManager, add handling for auto_search in window action
...
bzr revid: xmo@openerp.com-20110325081227-cpct376v07amlooo
2011-03-25 09:12:27 +01:00
Xavier Morel
98037d1fe5
[IMP] use .toggle(condition) instead of if(condition) .show() else .hide()
...
bzr revid: xmo@openerp.com-20110325072607-gbz2z3rsnv140fgu
2011-03-25 08:26:07 +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
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
Xavier Morel
6c5665b7ed
[ADD] integer widget
...
bzr revid: xmo@openerp.com-20110324192459-csylxhu32au9nns6
2011-03-24 20:24:59 +01:00
Xavier Morel
270ccc546a
[ADD] text, selection and boolean fields; improve logic to detect whether a field has a value
...
If the value returned by a field is the literal 'null' or an empty
string, then the field is empty (empty input, no valued option
selected, etc...).
On the other hand, because openerp.base.search.Field.get_value returns
a *javascript* value it can be the literals '0' or 'false'. Those are
falsy in a boolean context (for good reasons, for 'false') but they
should still count as the field having a value.
I'm guessing this part is going to reach "spin off in its own
per-field method" complexity pretty soon.
bzr revid: xmo@openerp.com-20110324184713-sf7skv34s9824ge6
2011-03-24 19:47:13 +01:00
Xavier Morel
58584c82a7
[IMP] move group toggling from template code to JS code
...
bzr revid: xmo@openerp.com-20110324182222-qaymq120818jx10n
2011-03-24 19:22:22 +01:00
Xavier Morel
2e2e88e687
[ADD] Date and ManyToMany fields
...
bzr revid: xmo@openerp.com-20110324181655-xh1btoq1mj8kr2mi
2011-03-24 19:16:55 +01:00
Xavier Morel
3c46de8c98
[FIX] the default operator on 'char' fields is 'ilike'
...
bzr revid: xmo@openerp.com-20110324180129-mv36bxo7dswv7q06
2011-03-24 19:01:29 +01:00
Xavier Morel
f9e10d85a1
[IMP] only send domain if there's a value (the field is 'enabled')
...
bzr revid: xmo@openerp.com-20110324180028-3cuim4glo70wezkh
2011-03-24 19:00:28 +01:00
Xavier Morel
10d34d936a
[FIX] it turns out the default operator is weirdly named 'default_operator', not 'die_walküre'. Weird
...
bzr revid: xmo@openerp.com-20110324174230-nfv342t6aysrkkb5
2011-03-24 18:42:30 +01:00
Xavier Morel
cff572c9c4
[FIX] yes suzie, we do actually need the last filter of our view, it can be useful
...
bzr revid: xmo@openerp.com-20110324173926-ctk9ys2ddiuguvjz
2011-03-24 18:39:26 +01:00