Commit Graph

14 Commits

Author SHA1 Message Date
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