Commit Graph

179 Commits

Author SHA1 Message Date
niv-openerp e975b4ac1e [imp] added compound context and compound domain and implemented correctly context & domain handling in m2o
bzr revid: nicolas.vanhoren@openerp.com-20110617120834-c616130ueklb3rxs
2011-06-17 14:08:34 +02:00
Jiten Rangwala (OpenERP) f62459d5b2 [MERGE]
bzr revid: jra@tinyerp.com-20110614123000-2shwv7920bvwispu
2011-06-14 18:00:00 +05:30
Jiten Rangwala (OpenERP) 779c588478 [IMP] Improved code
- Remove methods(logout,records,fields_view_get) from base controller which are implemented for mobile.
- Use base dataset in to mobile code.

bzr revid: jra@tinyerp.com-20110614122626-sjodhex9ayp20ia1
2011-06-14 17:56:26 +05:30
niv-openerp 7c7514654f [imp] improved design of name_search
bzr revid: nicolas.vanhoren@openerp.com-20110614093844-vurmvtar87wq486c
2011-06-14 11:38:44 +02:00
niv-openerp 6c0532ef92 [fix] fixed previous fix about onchanges
bzr revid: nicolas.vanhoren@openerp.com-20110614092420-isugm9lc7i3k0x9g
2011-06-14 11:24:20 +02:00
Fabien Meghazi feb346b1f6 [FIX] Repair callbacks
bzr revid: fme@openerp.com-20110614090050-fj59w1ntc2utq4eu
2011-06-14 11:00:50 +02:00
Jiten Rangwala (OpenERP) f05e45fdd7 [MERGE]
bzr revid: jra@tinyerp.com-20110613123026-yd479syow7wtyzcg
2011-06-13 18:00:26 +05:30
Jiten Rangwala (OpenERP) d0ecebc3a0 [IMP] Improve web mobile
- Change dependancy qweb to qweb2
- Remove unnecessary dependancy from mobile web
- Modify base js for mobile
- Add methods in base for shortcut list and logout

bzr revid: jra@tinyerp.com-20110610125006-7dg7f22uu5iazmhh
2011-06-10 18:20:06 +05:30
Jiten Rangwala (OpenERP) fc350d5775 [REM] Remove extra code from mobile controller
bzr revid: jra@tinyerp.com-20110609134500-fbc7gzeyj7h71w41
2011-06-09 19:15:00 +05:30
niv-openerp 7d05822051 [merge]
bzr revid: nicolas.vanhoren@openerp.com-20110609132026-bql0r43umfho1kcj
2011-06-09 15:20:26 +02:00
niv-openerp 28c6b1c7d8 [imp] improvements of the m2o
bzr revid: nicolas.vanhoren@openerp.com-20110609132004-vac8h7r2im3wdlq5
2011-06-09 15:20:04 +02:00
Antony Lesuisse 45eb411f04 [MERGE] xmo editable lists
bzr revid: al@openerp.com-20110609012045-off7e8p7qem11vza
2011-06-09 03:20:45 +02:00
niv-openerp a4e8b8e017 [deep-cleaning] first step of rewriting m2o
bzr revid: nicolas.vanhoren@openerp.com-20110606165043-dae2xm6d48vq4z7m
2011-06-06 18:50:43 +02:00
niv-openerp 8f5088e127 [imp] added db selection
bzr revid: nicolas.vanhoren@openerp.com-20110606114306-bbb8r3fvtxvvamcq
2011-06-06 13:43:06 +02:00
Xavier Morel c452d85a7a [MERGE] from trunk
bzr revid: xmo@openerp.com-20110606113621-r3q0otfjdu7l0ubp
2011-06-06 13:36:21 +02:00
Fabien Meghazi 8011b649ee [ADD] "Reset" feature in dashboards
bzr revid: fme@openerp.com-20110606105436-wpo7xyiiy2o6jyzm
2011-06-06 12:54:36 +02:00
Fabien Meghazi 19382763fb [FIX] Fixed View controller
bzr revid: fme@openerp.com-20110606103502-wfph1zo7nnt2668p
2011-06-06 12:35:02 +02:00
Xavier Morel 69132745e0 [FIX] remove fields_view_get preprocessing of set_editable/@editable, done in JS
bzr revid: xmo@openerp.com-20110606095254-h7r8v42y8q42sjj4
2011-06-06 11:52:54 +02:00
niv-openerp 0422a69d6c [merge]
bzr revid: nicolas.vanhoren@openerp.com-20110606070530-mi6q1qltcidao7us
2011-06-06 09:05:30 +02:00
niv-openerp aece1cf7c1 [imp] improvements related to embedded views.
bzr revid: nicolas.vanhoren@openerp.com-20110606070451-vn321aqrzi28akgj
2011-06-06 09:04:51 +02:00
Fabien Meghazi dac344cf31 [ADD] Add custom views management (add, undo) in View controller
bzr revid: fme@openerp.com-20110601134514-dv91qpjl50ptf161
2011-06-01 15:45:14 +02:00
Fabien Meghazi 4705e30d0b [FIX] Fixed load() in action controller. Was not calling clean_action()
bzr revid: fme@openerp.com-20110531195202-6z6veclumppp1mlr
2011-05-31 21:52:02 +02:00
Xavier Morel d7e17b06cf [IMP] final fixes to list view/groups for behavior which should be correct in list view itself:
* Handle aggregate fields (at the list level)
* remove color handling for now, go back to using vanilla datasets for fetching records

TODO: Ensure that APIs available are useable for third-parties to use list views as components, or fix those APIs

bzr revid: xmo@openerp.com-20110527092811-ldxd4oufvjtqvha3
2011-05-27 11:28:11 +02:00
Xavier Morel 1f247b96e1 [IMP] Remove colors handling so ListView.fill is not necessary anymore, and can go back to ListView.load and DataSet.search_read
bzr revid: xmo@openerp.com-20110527071309-rtdkawbu4v7xfepd
2011-05-27 09:13:09 +02:00
Fabien Meghazi e3eb23b96c [ADD] Added Binary#upload_attachment controller
bzr revid: fme@openerp.com-20110526210641-geszqjfcw3vx0vq8
2011-05-26 23:06:41 +02:00
Xavier Morel bf57c5ab90 [IMP] a bunch of improvements to groups handling in list view
* Support for aggregate fields in groups
* Complete (breaking) change to DataGroup API, turns out the old one sucked
* Correctly display groups (and nested data columns)
* Support for group_by_no_leaf, with and without group_by fields

bzr revid: xmo@openerp.com-20110524140055-6g22b1xt7hz9ujrl
2011-05-24 16:00:55 +02:00
Xavier Morel 8a50dd1609 [FIX] handling of context in DataGroup.read, context is put in request.context not provided as part of the function's kwargs dammit
bzr revid: xmo@openerp.com-20110524091114-201ar78ijsh2ntj8
2011-05-24 11:11:14 +02:00
Fabien Meghazi d66a1ca348 [IMP] Moved binary controllers from FormView class to new Binary class
bzr revid: fme@openerp.com-20110523145219-0nwzvkm94bm5liag
2011-05-23 16:52:19 +02:00
Xavier Morel 802a039429 [FIX] read_group call: don't provide a False domain, the server does *not* like it
bzr revid: xmo@openerp.com-20110520120202-02thl4b63bw8nxig
2011-05-20 14:02:02 +02:00
Xavier Morel 3fd459098a [FIX] 'except Exception as variable' is invalid syntax in Python 2.5
bzr revid: xmo@openerp.com-20110520082343-y7uhx6vbf1afwfxj
2011-05-20 10:23:43 +02:00
niv-openerp b98f1f5415 [IMP] Added all fields in custom filters.
bzr revid: nicolas.vanhoren@openerp.com-20110519151249-jsla662056a8r01m
2011-05-19 17:12:49 +02:00
Fabien Meghazi fa36a75353 [ADD] Added 'Save As' feature to binary fields
bzr revid: fme@openerp.com-20110519134535-mjxhz0yvqlsnpsvm
2011-05-19 15:45:35 +02:00
Fabien Meghazi 665e779b78 [ADD] Binary image working under chrome
bzr revid: fme@openerp.com-20110519101726-valkxw6v6zpwbpyi
2011-05-19 12:17:26 +02:00
Fabien Meghazi b432e7ba1a [ADD] Added ajax upload controller to formview
bzr revid: fme@openerp.com-20110518223525-674f68hd8wn9wypk
2011-05-19 00:35:25 +02:00
Fabien Meghazi 0e38585483 [ADD] Start binary image edition widgets
bzr revid: fme@openerp.com-20110518153356-7c69bg8mdkd9x94p
2011-05-18 17:33:56 +02:00
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