Commit Graph

27 Commits

Author SHA1 Message Date
Xavier Morel e92d888f72 [FIX] broken saving of new row in editable list
bzr revid: xmo@openerp.com-20110804153016-24mslsbbxpn07f3t
2011-08-04 17:30:16 +02:00
Fabien Meghazi fc065eabd7 [FIX] Fixed more css
bzr revid: fme@openerp.com-20110803124702-w6ja309afcp818qk
2011-08-03 14:47:02 +02:00
Xavier Morel 821b77fb73 [FIX] handling of tree_invisible in form widgets of editable list: if invisible and tree_invisible, tree_invisible should take priority and apply first
bzr revid: xmo@openerp.com-20110803121810-xrw944u8o8afyms9
2011-08-03 14:18:10 +02:00
Xavier Morel 5e4ae7b2d8 [FIX] stuff al broke: removed parameters from FormView constructor, did not fix all callsites
bzr revid: xmo@openerp.com-20110803120607-arw69hc83rp0kq03
2011-08-03 14:06:07 +02:00
Xavier Morel 8b7470bdb9 [FIX] reload records on listview edition cancel (in case some action changed a value while in form mode)
also improve sequencing of operation in case of edition cancelling in order to lower the risks of race condition

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

bzr revid: xmo@openerp.com-20110715071853-i9yrepxeh8b70me8
2011-07-15 09:18:53 +02:00
Xavier Morel 17d87a9599 [FIX] group titles should display 'Undefined' for false values, rather than 'false'
bzr revid: xmo@openerp.com-20110712141934-qk3zfckzh32b8xu1
2011-07-12 16:19:34 +02:00
Fabien Meghazi f0f386e748 [REM] Removed use of attrs and replaced it with modifiers
Warning ! You need server Revision: 3497 revid:vmt@openerp.com-20110705122222-bhim9uft3l3sqee8

bzr revid: fme@openerp.com-20110707103740-4m6vrj18wfi2hacy
2011-07-07 12:37:40 +02:00
Xavier Morel 3099c30221 [IMP] move and rename ListView.List.get_fields_view: its actual role is to transmogrify the listview's view descriptor so that we can use it in a form view, so it's only for editable lists, and it should reflect its actual task in its name.
Also add some doc.

bzr revid: xmo@openerp.com-20110623105002-vnznqit790p5gv48
2011-06-23 12:50:02 +02:00
Xavier Morel a8355d54d7 [FIX] When using return on an action button, triggers both click and keyup, so we have to disable keyup as well on buttons in editable list, or it gets forwarded to the list itself (and executes action + double saves)
bzr revid: xmo@openerp.com-20110621155705-d4dqdaxy2slpdvh9
2011-06-21 17:57:05 +02:00
Xavier Morel be26be0d7c [FIX] property name for click even in jQuery is 'click', not 'onclick' and Firefox does *not* like the wrong one
bzr revid: xmo@openerp.com-20110608145850-9fvq4celpj1v4ept
2011-06-08 16:58:50 +02:00
Xavier Morel a905ab7f17 [IMP] don't wait for the bloody record to be fully loaded to fixup cell styles and add groupby columns (in case of grouping), it makes the list titles jittery which looks terrible. Instead, can fixup the row right after rendering, which makes the whole thing much stabler
bzr revid: xmo@openerp.com-20110608135141-g6rz1g77ykyg2cja
2011-06-08 15:51:41 +02:00
Xavier Morel f824cd6aa3 [FIX] recompute aggregates after saving a record
bzr revid: xmo@openerp.com-20110608133301-l3cdm9r2254zs20u
2011-06-08 15:33:01 +02:00
Xavier Morel 08f6d5d9ee [IMP] switching to form view selecting the correct record while in edition mode with a record being edited
bzr revid: xmo@openerp.com-20110607105557-izu1cm5udiqkktsg
2011-06-07 12:55:57 +02:00
Xavier Morel 26bd0653c4 [IMP] add empty padding columns to editable rows when group_by active
bzr revid: xmo@openerp.com-20110606140154-39f2ivk5csfkc5x9
2011-06-06 16:01:54 +02:00
Xavier Morel ea92194cc6 [FIX] ensure only one row at a time is edited, integrate dataset index in row markup to create a more solid mapping between records and table rows in ListView.List (than checking the number of ancestors, which — it turns out — is a bit brittle when adding new rows at the front of the table
bzr revid: xmo@openerp.com-20110606134336-mmk00344x7gicd0z
2011-06-06 15:43:36 +02:00
Xavier Morel 587131e3ee [FIX] saving of newly created records
* Refresh correct record in @editable=top
* Follow up with new record after creation (instead of editing semi-random one)

bzr revid: xmo@openerp.com-20110606131630-vq2bwtrozm8jybpo
2011-06-06 15:16:30 +02:00
Xavier Morel f9a4afe889 [FIX] editable is an attribute on tree view
bzr revid: xmo@openerp.com-20110606123229-2agzw9djd99ojczi
2011-06-06 14:32:29 +02:00
Xavier Morel 0c673bb248 [IMP] make edition indexing work based on the current dataset
bzr revid: xmo@openerp.com-20110606114204-sjnil5xuhef0l2la
2011-06-06 13:42:04 +02:00
Xavier Morel efbde798bc [FIX] handling of editable list views via @editable, add basis for adding records in editable list mode
bzr revid: xmo@openerp.com-20110606095918-9kcm3x1m8bncl092
2011-06-06 11:59:18 +02:00
Xavier Morel 7ba2688e39 [IMP] reload of rows after action: only reload the row, not the whole tree
Also improve DataSet slightly: have read_index and read_ids return their RPC promises

bzr revid: xmo@openerp.com-20110603143723-go25vripams72bqb
2011-06-03 16:37:23 +02:00
Xavier Morel aaa459a29d [ADD] edition cancelling
bzr revid: xmo@openerp.com-20110603141638-giwlzwrp795bq78h
2011-06-03 16:16:38 +02:00
Xavier Morel 9250a5a3f6 [IMP] re-render record to readonly after saving it
bzr revid: xmo@openerp.com-20110603132438-uhkzql3lsy6h9ptn
2011-06-03 15:24:38 +02:00
Xavier Morel af71f903dc [ADD] basic (and crummy) saving of editable rows
TODO:
* Switch back to read row after saving
* Edit next row if [return]
* How do things interact with onchanges?
* Handle validation errors

bzr revid: xmo@openerp.com-20110603122443-fvmfouuybh69b48g
2011-06-03 14:24:43 +02:00
Xavier Morel 47d696ef4e [IMP] awful hack to hide the value but not the cell itself in editable row cells when it is invisible from an attrs evaluation rather than from @invisible
bzr revid: xmo@openerp.com-20110603115757-4z67r08g1sfogfgw
2011-06-03 13:57:57 +02:00
Xavier Morel 8c9d79e132 [IMP] move addition of oe-field-cell on cells of editable rows to post-processing rather than template alteration
bzr revid: xmo@openerp.com-20110603111044-hcrqubshpnc6mzux
2011-06-03 13:10:44 +02:00
Xavier Morel 6037c0a650 [ADD] basic overriding of WidgetFrame template: remove <table> and <tr> display levels
bzr revid: xmo@openerp.com-20110603103100-c0di95c1z5rd1ogh
2011-06-03 12:31:00 +02:00
Xavier Morel 3895bcb954 [MOVE] editability code for listviews in a separate files: customizations of Form View require load-time dependencies on form.js, but form.js already depends on ListView (in order to create m2m widgets and sub-widgets), so we need to execute that part after both openep.base.list and openerp.base.form have loaded
bzr revid: xmo@openerp.com-20110603093606-gw00iidxfakjmvt3
2011-06-03 11:36:06 +02:00