Commit Graph

244 Commits

Author SHA1 Message Date
Xavier Morel 8c6880a0d6 [FIX] remove debug prints
bzr revid: xmo@openerp.com-20110516120950-m7hu5mijw4ici255
2011-05-16 14:09:50 +02:00
Xavier Morel d10cf199b9 [REM] broken method
bzr revid: xmo@openerp.com-20110516072544-bj7shdl9e1of34sr
2011-05-16 09:25:44 +02:00
Fabien Meghazi f959208232 [FIX] Binary images are now fetched with regular http request
bzr revid: fme@openerp.com-20110517160311-4bb5exoguxn3tx3a
2011-05-17 18:03:11 +02:00
Fabien Meghazi 6c7a14b61a [FIX] Dataset#get does not honor context
bzr revid: fme@openerp.com-20110517132856-9za8lqoaj959h3z7
2011-05-17 15:28:56 +02:00
niv-openerp 3bc12005bd [MERGE]
bzr revid: nicolas.vanhoren@openerp.com-20110513141459-g5b19i83hqvy9cnh
2011-05-13 16:14:59 +02:00
niv-openerp 68477ebc47 [IMP] Cleaned do_fill
bzr revid: nicolas.vanhoren@openerp.com-20110513135403-wcmctpibtw97fpah
2011-05-13 15:54:03 +02:00
niv-openerp 5f11a9f30c [IMP] Cleaned do_search_read.
bzr revid: nicolas.vanhoren@openerp.com-20110513133914-nvezbww1r84mpiju
2011-05-13 15:39:14 +02:00
Xavier Morel 0dcd78a54e [ADD] DataGroup API
bzr revid: xmo@openerp.com-20110510083420-18zr6j8ab5d9c023
2011-05-10 10:34:20 +02:00
niv-openerp c828a5e872 [MERGE]
bzr revid: nicolas.vanhoren@openerp.com-20110506115607-c23lh5skwx5qtt82
2011-05-06 13:56:07 +02:00
Xavier Morel 075902f5c2 [IMP] make sortable columns look sortable (and sorted) a bit
bzr revid: xmo@openerp.com-20110504144753-zemygt44re3o8z0m
2011-05-04 16:47:53 +02:00
Xavier Morel ff691a34b5 [ADD] sorting support in list views
* Fix sorting in DataSet.do_search_read (would not fix ordering of read results, yielding a semi-random order instead of the one returned by search)
* Add sort parameter support to ListView.fill()
* Improve handling of sort parameter on DataSetSearch
  - Queue up fields to sort on (most important last) by calling 'dataset.sort(fieldname)' repeatedly
  - Get back a sort string fit for sending to OpenERP (server) by calling 'dataset.sort()' (without arguments)
* Adds sorting on list view by clicking on headers

bzr revid: xmo@openerp.com-20110504140535-ydj8zs33lt0dgcwy
2011-05-04 16:05:35 +02:00
sma (Tiny) 9be03eaf9e [FIX] Open records with selected ids for m2o popup.
bzr revid: sma@tinyerp.com-20110502132512-r9x0zts9wu21xrem
2011-05-02 18:55:12 +05:30
sma (Tiny) a2fd97f660 [IMP] Improve downkey selection.
bzr revid: sma@tinyerp.com-20110428130712-d32q8zew3lni1pjz
2011-04-28 18:37:12 +05:30
sma (Tiny) 5060d7111c [IMP] Implement many2one initiall work.
bzr revid: sma@tinyerp.com-20110427122051-h80fka7fqjz0fcpz
2011-04-27 17:50:51 +05:30
Fabien Meghazi 14270adaaf [ADD] Added support for buttons of type 'workflow'
bzr revid: fme@openerp.com-20110421161343-k0jejshvx12nf9ex
2011-04-21 18:13:43 +02:00
Fabien Meghazi 3e4c62c536 [ADD] Added exec_workflow controllers
bzr revid: fme@openerp.com-20110421155605-ek8effxz9xln26s4
2011-04-21 17:56:05 +02:00
Fabien Meghazi 85c28f6d23 [ADD] Added /base/action/load controller
bzr revid: fme@openerp.com-20110421132354-ubji3zz8k181qlxu
2011-04-21 15:23:54 +02:00
Xavier Morel a383be5549 [IMP] add a level of nesting to do_fill result so do_fill_table can get the view data, also fix failing tests involving do_fill_table
bzr revid: xmo@openerp.com-20110421131239-dbr5cg27qntj0nuu
2011-04-21 15:12:39 +02:00
Xavier Morel b4cd776b25 [FIX] correctly load calendar addon
* Fix loading of active modules (don't hardcode list)
* Implement loading of CSS files via css list
* Fix Calendar addon
  - Add list of JS files to descriptor
  - Add list of CSS files to descriptor
  - Have calendar load its own qweb template file
  - Put calendar in the correct namespace (openerp.base_calendar) instead of a nonsensical one

bzr revid: xmo@openerp.com-20110413125042-feiimul8617a51d6
2011-04-13 14:50:42 +02:00
Xavier Morel d7da740264 [MERGE] from mainline branch, hook in new record handling
bzr revid: xmo@openerp.com-20110412132120-ii3mosez9kguvcjb
2011-04-12 15:21:20 +02:00
Xavier Morel 0006e356f9 [ADD] attrs.invisible in readonly list cells
bzr revid: xmo@openerp.com-20110412065343-ee8iinkqw2iobl90
2011-04-12 08:53:43 +02:00
Xavier Morel 83bd3c8348 [REM] attrs processing placeholders, will be done in JS
bzr revid: xmo@openerp.com-20110411135743-i79ti6acxe7cf400
2011-04-11 15:57:43 +02:00
Xavier Morel 5fc7311f1a [ADD] row-wise colors
bzr revid: xmo@openerp.com-20110411125450-3h0ay8fskd1s6nz5
2011-04-11 14:54:50 +02:00
Fabien Meghazi 86c1b252e6 [ADD] Added record creation. Refactored form view.
bzr revid: fme@openerp.com-20110411113516-s8ydhmknehgbwp2n
2011-04-11 13:35:16 +02:00
Xavier Morel 911369822a [ADD] processing of context['set_editable'] on list view
bzr revid: xmo@openerp.com-20110411111451-5j6ve9f1wjiuzjfx
2011-04-11 13:14:51 +02:00
Xavier Morel 3412b89d95 [IMP] add a bunch of tests for transformation of invisible fields, make View.fields_view_get take a request so it can use the request context for its evaluations
bzr revid: xmo@openerp.com-20110411103118-msx5plh2lnz5obps
2011-04-11 12:31:18 +02:00
Xavier Morel f21bb336d3 [FIX] dataset search, 'context' is popped from kwargs into the request object, and should be taken from there for RPC calls
bzr revid: xmo@openerp.com-20110411075846-9qxzabjav0y1l47n
2011-04-11 09:58:46 +02:00
Xavier Morel 669b109bde [FIX] docstring for DataSet.do_search_read: missing 'fields' param
bzr revid: xmo@openerp.com-20110411063054-jybr8z734xy3qndp
2011-04-11 08:30:54 +02:00
Xavier Morel 75bf28388b [IMP] improvements to View.normalize_attrs
bzr revid: xmo@openerp.com-20110411062541-mjib0mm8wk7ujlyy
2011-04-11 08:25:41 +02:00
niv-openerp 66a79b7e3f [MERGE]
bzr revid: nicolas.vanhoren@openerp.com-20110408161023-barazui14iowxptr
2011-04-08 18:10:23 +02:00
niv-openerp 29ed9f9be3 [IMP] Action wip - popup is working.
bzr revid: nicolas.vanhoren@openerp.com-20110408152508-5mes2key0yzq9avq
2011-04-08 17:25:08 +02:00
Fabien Meghazi 2acfa4ba06 [ADD] form: Basic new record support
bzr revid: fme@openerp.com-20110407130725-0o4d8j2kgko8b7jn
2011-04-07 15:07:25 +02:00
niv-openerp 887ec82f20 [MERGE]
bzr revid: nicolas.vanhoren@openerp.com-20110407130644-n4u84iz4uk4ii3z2
2011-04-07 15:06:44 +02:00
Antony Lesuisse 51d8fdd646 [MERGE] gantt viw from trunk-proto61-dhtmlx-gantt-cpa
bzr revid: al@openerp.com-20110407121331-wx5uwrhtmsnrlsj9
2011-04-07 14:13:31 +02:00
niv-openerp c8e100f8cd [MERGE]
bzr revid: nicolas.vanhoren@openerp.com-20110407101319-5axkyl54kts7u7n4
2011-04-07 12:13:19 +02:00
niv-openerp 0cab8e6972 [IMP] Actions handling wip
bzr revid: nicolas.vanhoren@openerp.com-20110407095912-r6cqswx9pvo684ek
2011-04-07 11:59:12 +02:00
Antony Lesuisse a65ac8c709 dataset split, crashmanager
bzr revid: al@openerp.com-20110406211037-uzn3n0uravuy900q
2011-04-06 23:10:37 +02:00
niv-openerp a7db336065 [IMP] Changed way the sidebar is created.
bzr revid: nicolas.vanhoren@openerp.com-20110406144751-or0o86gvqe5sa21h
2011-04-06 16:47:51 +02:00
niv-openerp 1f2ebfbc44 [IMP] small improvement to fields_view_get
bzr revid: nicolas.vanhoren@openerp.com-20110406134418-hv5gii3htphwz4g8
2011-04-06 15:44:18 +02:00
Fabien Meghazi 704e180bfc [ADD] Add call() to dataset. Moved datarecord methods in dataset
bzr revid: fme@openerp.com-20110406132934-7jwgrkhi78xbffsb
2011-04-06 15:29:34 +02:00
Fabien Meghazi ed4a5a656e [ADD] Added context in writes
bzr revid: fme@openerp.com-20110406095804-zcvci559rgro60zp
2011-04-06 11:58:04 +02:00
Fabien Meghazi 052ee7bb31 [ADD] Added datarecord#save
bzr revid: fme@openerp.com-20110405143229-a7voaqvhnipx0vzu
2011-04-05 16:32:29 +02:00
niv-openerp df3257a741 [MERGE]
bzr revid: nicolas.vanhoren@openerp.com-20110404160926-f1uwddcknsezvamr
bzr revid: nicolas.vanhoren@openerp.com-20110405101739-iubtgou4lrnftmi2
2011-04-05 12:17:39 +02:00
Fabien Meghazi 6dd76ea8f6 [FIX] Simplified dataset. Plugged form view.
bzr revid: fme@openerp.com-20110404150619-z8tc382ujdfw89ji
2011-04-04 17:06:19 +02:00
niv-openerp 00188c2980 [MERGE]
bzr revid: nicolas.vanhoren@openerp.com-20110404142640-bgdhe7jcwdug4qq2
2011-04-04 16:26:40 +02:00
niv-openerp 19a8432167 [IMP] Added populate sidebar.
bzr revid: nicolas.vanhoren@openerp.com-20110404134705-rmzbxlobntfoblub
2011-04-04 15:47:05 +02:00
Xavier Morel 0a5a8cd81a [IMP] show and hide search view based on whether the currently displayed view is searchable
Note: searchability is *opt-out*, a view is searchable until it unambiguously states 'do not search me'

bzr revid: xmo@openerp.com-20110401104500-n7g6so01xb8oow3n
2011-04-01 12:45:00 +02:00
Xavier Morel f40d778c2e [FIX] some domains and contexts have leading or trailing slashes, need to strip them before evaluation
bzr revid: xmo@openerp.com-20110401094835-k1w7xlgdcyppt7io
2011-04-01 11:48:35 +02:00
Xavier Morel baf8d2d9a9 [IMP] server behavior fix: split tree view mode into tree and list based on view_type, nuke view_type
bzr revid: xmo@openerp.com-20110331152531-cpff6js0k8v4dtk9
2011-03-31 17:25:31 +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 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 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
Xavier Morel 6f3862e101 [ADD] non-literal contexts
bzr revid: xmo@openerp.com-20110328151410-6ep57ay6sdc2k39r
2011-03-28 17:14:10 +02:00
Xavier Morel e7860c7e63 [IMP] use non-literal domains to and from client, add a bunch of tests
Converted OpenERPSession's evaluations to be based on literal (dict) or nonliteral (Domain) objects. OpenERPSession will *not accept* to eval strings

bzr revid: xmo@openerp.com-20110328141920-hlp6sb173o2j6ldw
2011-03-28 16:19:20 +02:00
Xavier Morel fd9da7558a [ADD] start working on adding the concept of literal and non-lit domains, non-lit domains will *not* be pushed to the client but will be stored locally and only a ref will go through
bzr revid: xmo@openerp.com-20110328122724-gnxn8cnta4xyotab
2011-03-28 14:27:24 +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 ec7510b839 [FIX] documentation handling issues
bzr revid: xmo@openerp.com-20110328091809-kju0n2rw232z1pxf
2011-03-28 11:18:09 +02:00
Xavier Morel 5820b8f32c [MERGE] small refactoring from trunk
bzr revid: xmo@openerp.com-20110328083153-0uxa4m63aa3we8s7
2011-03-28 10:31:53 +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 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 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 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 0a7efc04dc [IMP] eval action context and domain straight as they come from a tree_but_open (on menu), add APIDoc for OpenERPSession
OpenERPSession is in charge of evaluating domains and contexts. Always.

bzr revid: xmo@openerp.com-20110325094119-fpd4e00w20kbgfzf
2011-03-25 10:41:19 +01:00
Fabien Meghazi 78f759622f [IMP] Remove unused line
bzr revid: fme@openerp.com-20110325080108-7c155e8xc27m0zvb
2011-03-25 09:01:08 +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
Antony Lesuisse 506a85c80e viewmanager part1
bzr revid: al@openerp.com-20110324163114-dvoi8l3nzmut5y63
2011-03-24 17:31: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 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 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 3b3494b27e [FIX] rooted application menus incorrectly, fixed tests
bzr revid: xmo@openerp.com-20110321154034-tqd03u8u7tpxm5vc
2011-03-21 16:40:34 +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
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 6cab13279a [FIX] inline temporary variable
bzr revid: xmo@openerp.com-20110317171403-s1p00g5omgix01uu
2011-03-17 18:14:03 +01:00
Antony Lesuisse 1d13b61284 login ask for db
bzr revid: al@openerp.com-20110317150153-afr9lmsy1ihuafrt
2011-03-17 16:01:53 +01:00
Antony Lesuisse 5f1e8c27c5 base_calendar
bzr revid: al@openerp.com-20110317145321-bchwp2kw8isof6xx
2011-03-17 15:53:21 +01:00
Antony Lesuisse b8b37b18a2 datarecord load
bzr revid: al@openerp.com-20110317140638-dgsu44ci48nnpevq
2011-03-17 15:06:38 +01:00
Antony Lesuisse 02bf3106d6 addons loading working
bzr revid: al@openerp.com-20110316172042-go8m79n6j8b6lmaa
2011-03-16 18:20:42 +01:00
Xavier Morel 59a5c4c2a5 [IMP] result dict creations
bzr revid: xmo@openerp.com-20110314093825-1gcwso6w27tt6stz
2011-03-14 10:38:25 +01:00
Xavier Morel 9cf7baee6b [FIX] use simplejson as json is not available on Python 2.5 (also simplejson has better perfs)
bzr revid: xmo@openerp.com-20110310155345-8nxu3i92hno4j2yc
2011-03-10 16:53:45 +01:00
Antony Lesuisse 10104a2bf0 addons js loading
bzr revid: al@openerp.com-20110311132622-otrxhghgox9jqax6
2011-03-11 14:26:22 +01:00
Antony Lesuisse 5971491a13 skeleton part1
bzr revid: al@openerp.com-20110310115123-5a4i2wg3lw33kqv5
2011-03-10 12:51:23 +01:00
niv-openerp 2e2d85503a [FIX] compilation problems
bzr revid: nicolas.vanhoren@openerp.com-20110308162041-0t6kk49hfmf13hay
2011-03-08 17:20:41 +01:00
niv-openerp 13d8b38c4e [FIX] Cleaned for eclipse.
bzr revid: nicolas.vanhoren@openerp.com-20110308145754-uzjzt5unoa2sslri
2011-03-08 15:57:54 +01:00
niv-openerp 747783efea [FIX] Corrected indentation.
bzr revid: nicolas.vanhoren@openerp.com-20110308145530-rdy43672n558kq5s
2011-03-08 15:55:30 +01:00
Antony Lesuisse 04eaeaaeb4 addons loading part2
bzr revid: al@openerp.com-20110308111954-7z5sp3jtp0skllze
2011-03-08 12:19:54 +01:00
Fabien Meghazi c19798a74e Fix indentation
bzr revid: fme@openerp.com-20110307135237-q6w2asndu84an7a7
2011-03-07 14:52:37 +01:00
Antony Lesuisse fc679ac8a5 preliminary addons loading support
bzr revid: al@openerp.com-20110307092632-e0a6rho0bvuk04ei
2011-03-07 10:26:32 +01:00
Fabien Meghazi f435d8ca99 Include xml2json_direct in main. Converted node.@attribute to node.attrs = {}
bzr revid: fme@openerp.com-20110303145552-f4cbxu2oi01ykbxl
2011-03-03 15:55:52 +01:00
Antony Lesuisse 820630a906 openobject is dead long live to openerpweb
bzr revid: al@openerp.com-20110302185606-gcag0tlkcli0kqas
2011-03-02 19:56:06 +01:00