Fabien Meghazi
1f1770ffb7
[IMP] Disable autofocus on editable lists
...
bzr revid: fme@openerp.com-20120802093917-3wc9qgek6e2mba5p
2012-08-02 11:39:17 +02:00
Antony Lesuisse
574f3891a5
[MERGE] trunk
...
bzr revid: al@openerp.com-20120801104657-cinfl0svpnc8njs5
2012-08-01 12:46:57 +02:00
Xavier Morel
de1f6488a7
[CHG] there always is an editor in the editable listview, destroy just before creating the new one
...
bzr revid: xmo@openerp.com-20120726143320-4cdze45po1g581lu
2012-07-26 16:33:20 +02:00
Xavier Morel
bf4c39cdf1
[FIX] arrow keys handling in editable listview field when field is not a text-based input
...
* Correctly handle HTMLInputElement#selectionStart throwing an error
(checkbox and radio)
* Correctly handle elements without a selectionStart at all (select)
=> should ~always let the go-to-other-field behavior go through
bzr revid: xmo@openerp.com-20120726123819-74n1gl01p6befgkp
2012-07-26 14:38:19 +02:00
Xavier Morel
46a0370273
[IMP] avoid losing the exact value of tree/@editable when checking for editability status
...
bzr revid: xmo@openerp.com-20120724171419-czll83665nptk3n3
2012-07-24 19:14:19 +02:00
Xavier Morel
38cb3de518
[FIX] attempt to make editability handling more logical and simpler to manage.
...
Also less buggy, with a bit o' luck
bzr revid: xmo@openerp.com-20120724170550-150vimuk6bvzh8y8
2012-07-24 19:05:50 +02:00
Xavier Morel
df05d2cd20
[ADD] focus previous/next field when using the left/right arrow while at the start/end of a field
...
bzr revid: xmo@openerp.com-20120724150112-r8liahdyaxmx49o8
2012-07-24 17:01:12 +02:00
Xavier Morel
35bb49701c
[IMP] keep focus in the same column when navigating to the previous/next record with up/down arrows
...
bzr revid: xmo@openerp.com-20120724135655-hjk2l0mxvncker4q
2012-07-24 15:56:55 +02:00
Xavier Morel
ac5dc58367
[IMP] focus the clicked field when starting a row edition by clicking on a cell
...
bzr revid: xmo@openerp.com-20120719095742-lps9xjsrvhn5fnlh
2012-07-19 11:57:42 +02:00
Xavier Morel
85a8641e2c
[FIX] cancel edition when deleting a record, so we're not left with a phantom editor for the deleted record on top of an other row
...
bzr revid: xmo@openerp.com-20120718133115-8cn8wqf1ra8pjrnv
2012-07-18 15:31:15 +02:00
Xavier Morel
65ac59f42a
[ADD] when tabbing from the last field in an edition row, go to next edition as if we'd hit [return]
...
extract common code for 'save current edition and move on to next edition' to a private method
bzr revid: xmo@openerp.com-20120718130751-g8htb78n54z1b9hv
2012-07-18 15:07:51 +02:00
Xavier Morel
0f054b57c1
[IMP] add ability to change row using up/down key while editing list
...
* Allow asserting state of record being edited (creating or modifying) through Editor#is_editing
* Improve setup_events to also dispatch keydown events
bzr revid: xmo@openerp.com-20120718124359-q0udajwbuhzpqjmi
2012-07-18 14:43:59 +02:00
Xavier Morel
71ede66dce
[FIX] handling of @onwrite
...
extraction was broken: using _.bind/3 will partially apply the
function (first argument) on top of binding it to a context (second
argument), but the partial application will be from the *left* (which
is pretty much the only one making sense, short of kwargs).
handle_onwrite_record took its arguments the wrong way around: the
partially applied one was specified on the right and the "actually
applied" one was on the left, so it used the wrong argument and ended
up blowing up the rest of the code.
bzr revid: xmo@openerp.com-20120718101744-bbbshq60x2kqhob6
2012-07-18 12:17:44 +02:00
Xavier Morel
01e6e3ec07
[IMP] DOWNCASE ALL THE THINGS
...
apparently and contrary to what I remembered, we're still supposed to use underscore_separated method names, not camelCase
bzr revid: xmo@openerp.com-20120717132308-wvpldtprt33heee3
2012-07-17 15:23:08 +02:00
Xavier Morel
75c2845fb5
[ADD] default_get support on new row creation
...
bzr revid: xmo@openerp.com-20120716110430-9uv352m46d3mn1bx
2012-07-16 13:04:30 +02:00
Xavier Morel
16559cd6ae
[ADD] discard 'link-ish' to editable list view
...
bzr revid: xmo@openerp.com-20120711142048-covvchmiscjlhji0
2012-07-11 16:20:48 +02:00
Xavier Morel
cd02216c28
[FIX] selector for edit-on-click-on-empty-row
...
bzr revid: xmo@openerp.com-20120711122424-355c6ed4vnmrr69n
2012-07-11 14:24:24 +02:00
Xavier Morel
3efc9c033a
[ADD] create new record when clicking on an empty row
...
bzr revid: xmo@openerp.com-20120711111027-6vtyoxx17fw8dmvc
2012-07-11 13:10:27 +02:00
Xavier Morel
52723ef052
[FIX] monkey around keyboard handling to ensure we don't cancel a cancelled edition or any other such thing.
...
maybe the form should be explicitly blurred when saved/cancelled?
bzr revid: xmo@openerp.com-20120710143323-fye927s9k455mqls
2012-07-10 16:33:23 +02:00
Xavier Morel
46da3547ca
[IMP] move saving a row from per-row buttons to a single global button replacing [Create]
...
bzr revid: xmo@openerp.com-20120710143228-mqfuaxw894x9khkc
2012-07-10 16:32:28 +02:00
Xavier Morel
079e90afbb
[ADD] successor method to list collections, to safely get the "next" record in a nested (groupby) context
...
bzr revid: xmo@openerp.com-20120710123718-kiot6zzji07a4iao
2012-07-10 14:37:18 +02:00
Xavier Morel
611fc6cc4f
[FIX] handling of resize event during edition so form fields don't get all fubar
...
bzr revid: xmo@openerp.com-20120710103557-584hsyats0fdzpo1
2012-07-10 12:35:57 +02:00
Xavier Morel
9568c463b3
[FIX] conflicts between save-on-blur and action buttons in o2m
...
bzr revid: xmo@openerp.com-20120710073928-riswpz7f9mddqjgf
2012-07-10 09:39:28 +02:00
Xavier Morel
853c5a70c0
[ADD] 'false' id to newly created records, otherwise format_cell's button rendering blows up
...
also fix various bits of code looking for an absence of @data-id, so that they look for a false @data-id to match the row of the new record instead
bzr revid: xmo@openerp.com-20120709084652-rt1ffu2ea20scw53
2012-07-09 10:46:52 +02:00
Xavier Morel
cd59881b05
[FIX] Editor is not restartable, so don't restart it.
...
Instead, create a new one at each on_loaded.
Editor is not restartable because the formview wedges itself if its on_loaded is called more than once
bzr revid: xmo@openerp.com-20120709080604-er1l6bn5eespue59
2012-07-09 10:06:04 +02:00
Xavier Morel
ee20d56357
[FIX] Create new records as a bunch of empty (false) fields, otherwise Bad Things Happen ~/projects/tiny/web/current
...
namely, if the list view fields have e.g. attributes associated, the
computation of the domains blow up
also, always create an editor in the listview (if the editable
listview module has been installed), avoids blowing up 'safety' calls
to #ensureSaved. An alternative would be to fix #ensureSaved not to
blow up if there's no editor, but that means third parties which
*know* there may be an editor in the list view can't easily hook up to
it.
Things will have to change anyway as currently toggling a list view
from not-editable to editable after on_loaded has been called will not
work correctly (it won't start the editor), which is shitty.
bzr revid: xmo@openerp.com-20120705143721-4fiz64k7fka4052k
2012-07-05 16:37:21 +02:00
Xavier Morel
09bf459bbc
[TESTS] add some
...
bzr revid: xmo@openerp.com-20120705070854-tsyl27v3hdh7sbds
2012-07-05 09:08:54 +02:00
Xavier Morel
25284686f3
[TEST] saving of record being edited, improve RPC mocking to allow dispatch on ORM method name
...
bzr revid: xmo@openerp.com-20120704132822-3p4h1c6cyr0qvn2x
2012-07-04 15:28:22 +02:00
Xavier Morel
9c6f8c5335
[FIX] broken keyup handling for return key, incorrect name ($.ui.keyCode uses enter)
...
bzr revid: xmo@openerp.com-20120704121957-hcwk5ove76kpo7y0
2012-07-04 14:19:57 +02:00
Xavier Morel
039cf85e32
[TEST] start adding some testing to new editable listview, validate structure of editionView in Editor
...
bzr revid: xmo@openerp.com-20120704095626-j7wtbgdmoti0kjie
2012-07-04 11:56:26 +02:00
Xavier Morel
db4aa8dfe7
[REF] remove deprecated & unused methods; extract some other methods
...
bzr revid: xmo@openerp.com-20120703155305-4bigm8htt3xutkyt
2012-07-03 17:53:05 +02:00
Xavier Morel
7ab7992fd6
[FIX] ensure current edition is saved before performing action
...
bzr revid: xmo@openerp.com-20120703143126-6ludobg5o75t14ic
2012-07-03 16:31:26 +02:00
Xavier Morel
58d1d6bb39
[FIX] forgot to instantiate deferred
...
bzr revid: xmo@openerp.com-20120703143035-zi336bg5lheocjpa
2012-07-03 16:30:35 +02:00
Xavier Morel
895dfe2448
[FIX] replace references to parent in editor with delegate, write some basic APIDoc
...
bzr revid: xmo@openerp.com-20120703133210-kgrj7y10cr3c8hai
2012-07-03 15:32:10 +02:00
Xavier Morel
336443d604
[IMP] hiding of readonly form fields in edition row: don't directly access DOM visibility properties
...
bzr revid: xmo@openerp.com-20120703110700-k0dqtthwo1g36pod
2012-07-03 13:07:00 +02:00
Xavier Morel
ae6c6eb8ec
[ADD] save button instead of selector during edition
...
bzr revid: xmo@openerp.com-20120703102750-1vmoljtbrnnl3lzo
2012-07-03 12:27:50 +02:00
Xavier Morel
a5940c4147
[IMP] reload record after cancelling an edition
...
bzr revid: xmo@openerp.com-20120703102731-mh1gqbglenr4boem
2012-07-03 12:27:31 +02:00
Xavier Morel
1a7ca5f676
[IMP] attempt to tighten concurrent operations during save phase of an edited row
...
bzr revid: xmo@openerp.com-20120703093200-hxsr9pnwoszbgwgl
2012-07-03 11:32:00 +02:00
Xavier Morel
29e65ff052
[FIX] move 'behavior on save' to handler for [Return] key as it's the only situation where we want to skip to next record
...
bzr revid: xmo@openerp.com-20120703091058-b7wdebu8ak6gssyb
2012-07-03 11:10:58 +02:00
Xavier Morel
70fa57b9df
[IMP] move onwrite handling to ListView (from List)
...
untested
bzr revid: xmo@openerp.com-20120702135824-ngcx34qfuu3t2kab
2012-07-02 15:58:24 +02:00
Xavier Morel
5df6c47700
[FIX] methods capitalization
...
bzr revid: xmo@openerp.com-20120702133451-e5b7uozm0p36jbpr
2012-07-02 15:34:51 +02:00
Xavier Morel
13cf266e2c
[FIX] next on create/save
...
* Move prev/next behavior after save to ListView
* Have fetching of row for a record be a method chain on Group/List
* Have edition behavior be fully specified in ListView
bzr revid: xmo@openerp.com-20120702132217-ni1byjkf7t6tr5a4
2012-07-02 15:22:17 +02:00
Xavier Morel
d6a9d86e09
[FIX] change event handling for 'new' records (records w/o an id yet)
...
bzr revid: xmo@openerp.com-20120702111026-twmh5gbg4i1fd4kj
2012-07-02 13:10:26 +02:00
Xavier Morel
c262b2d1ae
[FIX] shallow-copy info passed into Editor#edit to avoid mutating an object owned by somebody else
...
bzr revid: xmo@openerp.com-20120702110733-0qp0ki3hbw5b2nd3
2012-07-02 13:07:33 +02:00
Xavier Morel
d1eeaaa51e
[FIX] better filtering of id-less rows being selected in a ListView.List body
...
bzr revid: xmo@openerp.com-20120702110658-7t8pu12uso55enrh
2012-07-02 13:06:58 +02:00
Xavier Morel
3cc825994b
[TODO] add todo note
...
bzr revid: xmo@openerp.com-20120702110607-csi1oa4hm6lxtwat
2012-07-02 13:06:07 +02:00
Xavier Morel
ac2895fd62
[IMP] don't handle keypresses at the editor level, do that in the view instead
...
maybe the editor could do it and trigger an event of its own for the view to handle?
bzr revid: xmo@openerp.com-20120702093113-berlms96fqzfjlyg
2012-07-02 11:31:13 +02:00
Xavier Morel
f83684265d
[FIX] make edition of existing records kinda-sorta work (if the record is 'saved' by clicking on an other one)
...
bzr revid: xmo@openerp.com-20120628141403-z8kdg24xy5thmg50
2012-06-28 16:14:03 +02:00
Xavier Morel
cbba19da67
[IMP] automatically focus first field of edited row
...
bzr revid: xmo@openerp.com-20120628084547-6fo7fkiy2gh2wb6m
2012-06-28 10:45:47 +02:00
Xavier Morel
94f6eec2ab
[BREAK] editable list view
...
* Introduce overlay form on row edition
* Broken save
* Broken cancel
* (probably) broken o2m
* Broken create
bzr revid: xmo@openerp.com-20120627143228-qku9ku3zo6k59r0f
2012-06-27 16:32:28 +02:00
Xavier Morel
92431bf895
[FIX] usage of retarded API
...
bzr revid: xmo@openerp.com-20120625145103-bgbll0d9bcco0ikp
2012-06-25 16:51:03 +02:00
Xavier Morel
54a8f9e193
[MERGE] 6.1 changes and trunk
...
bzr revid: xmo@openerp.com-20120625135215-az1927llmk0vw655
2012-06-25 15:52:15 +02:00
Xavier Morel
3e2cab2aad
[FIX] handling of [Return] key to save records being edited in MSIE
...
* DOM events sequence screwed up, requiring an explicit blur on the
current target to try and ensure the corresponding form widget would
register its own change event
* Requirement to stop the default behavior of keypress and keydown on
[Return] as they would somehow trigger the contextual menu of m2o
fields on the row, at the wrong place, when in a char field (I don't
even...)
* Delaying of the actual saving of the form (via `setTimeout`) to try
and ensure the blur/change event has had the time to propagate
correctly (and be handled) before we actually save
bzr revid: xmo@openerp.com-20120615055440-yn00uv4q8y29nboq
2012-06-15 07:54:40 +02:00
Xavier Morel
acfff868cb
[IMP] return deferred from ListView#render_row_as_form indicating *when* the row has been rendered as a form
...
bzr revid: xmo@openerp.com-20120614123130-1z1vvt62rnr21bpz
2012-06-14 14:31:30 +02:00
Xavier Morel
83eef22856
[FIX] don't break the handling of record index 0 in editable list views: index 0 means something different than index = null
...
bzr revid: xmo@openerp.com-20120614085009-xuo1ifu2vnlcic72
2012-06-14 10:50:09 +02:00
Xavier Morel
49f6ab9853
[FIX] do not break dataset index (at the wrong moment) when clicking on [Create] row
...
dataset.index was previously set to ``null`` in handler of [Create]
button (to fullfill contract with form view that dataset.index should
be ``null`` to indicate the creation of a new record with no id).
Issue: after setting the index to ``null``, the list view calls
``render_row_as_form`` which starts out trying to save a row being
edited (case: clicking of the [Create] button after having selected a
row for edition or after having written in a new record e.g. [Create]
-> type -> [Create] type -> ...). This tentative to save the existing
form would be performed in the context of a ``null`` dataset.index,
which the form view doesn't (and shouldn't, index should be that of
record *being edited*) expect.
-> first save in whatever dataset state is the current one, and *right
before* creating the new form (after having saved and/or discarded the
previous one) we have the id of the new record to edit (or ``null``),
find the index for *that* and set ``dataset.index`` to that (or
``null``) so the new form view can be created and opened in the right
context.
bzr revid: xmo@openerp.com-20120613153842-pd6xitjs8n003ogs
2012-06-13 17:38:42 +02:00
Xavier Morel
9f9bbcff33
[FIX] in ensure_saved, discard non-dirty editable rows
...
if the editable row's form isn't dirty, either nothing has been
entered in a new row or an existing row (being edited) has not been
altered, so can just discard the row (and reload it from cache if it's
an edition).
bzr revid: xmo@openerp.com-20120613153633-ms7i8t9lvdarxqi3
2012-06-13 17:36:33 +02:00
Xavier Morel
632a4dee0c
[FIX] correctly forward arguments in _super() call of editable listview's form widgets override
...
bzr revid: xmo@openerp.com-20120613094037-3iny9dsdhmp7qspi
2012-06-13 11:40:37 +02:00
Xavier Morel
0240ab1682
[CHG] try saving any row under edition when starting an (other) row edition
...
editable lists should not lose data unless explicitly asked to forget about it by user action
bzr revid: xmo@openerp.com-20120612150820-z97jxme1vcu3x3jd
2012-06-12 17:08:20 +02:00
Xavier Morel
eb83b58e32
[IMP] Deferred usage in editable listview
...
bzr revid: xmo@openerp.com-20120612150708-0z5dsclcrtj29st3
2012-06-12 17:07:08 +02:00
niv-openerp
c7e32e7175
[FIX] Problem with SelectCreatePopup, the list view can sometimes be editable
...
lp bug: https://launchpad.net/bugs/1005812 fixed
bzr revid: nicolas.vanhoren@openerp.com-20120607152301-mu43z3n7q2fonsuk
2012-06-07 17:23:01 +02:00
niv-openerp
d70caa73d7
[fix] Put back disk icon in editable lists
...
bzr revid: nicolas.vanhoren@openerp.com-20120606132035-3zo2ld4q7vycuej6
2012-06-06 15:20:35 +02:00
Hiral Patel (OpenERP)
97d09bbd3c
[FIX]display icon of save button.
...
lp bug: https://launchpad.net/bugs/985715 fixed
bzr revid: hip@tinyerp.com-20120522100448-wslfkjb6j7lj8ipc
2012-05-22 15:34:48 +05:30
Fabien Meghazi
8b95683d20
[FIX] Fix some css, remove useless classes
...
bzr revid: fme@openerp.com-20120510103513-ejjeab5g3s6tr4tc
2012-05-10 12:35:13 +02:00
Fabien Meghazi
9eb8e07d4f
[FIX] Fix empty list menu tips on editable lists
...
bzr revid: fme@openerp.com-20120510092621-kbjjmo6yct1ndg3c
2012-05-10 11:26:21 +02:00
Fabien Meghazi
104615333c
[MERGE] Merge trunk
...
bzr revid: fme@openerp.com-20120509084139-q0jae332yok87ae1
2012-05-09 10:41:39 +02:00
Antony Lesuisse
bb8380314c
Clark Gable is dead. Frankly, my dear, I don't give a damn.
...
bzr revid: al@openerp.com-20120430000158-fp451ymdjxgzwi8v
2012-04-30 02:01:58 +02:00
niv-openerp
f719b8f325
[imp] modified form rendering interface
...
bzr revid: nicolas.vanhoren@openerp.com-20120502091053-o1knrm01225qdq0o
2012-05-02 11:10:53 +02:00
niv-openerp
8a66f58d52
[fix] problem in editable lists: could not edit an existing row
...
bzr revid: nicolas.vanhoren@openerp.com-20120419155514-j8bslmn6z7z1dh8h
2012-04-19 17:55:14 +02:00
niv-openerp
630eabbbb2
[fix] some problem in editable list, still not solved but made more usable until we find a real fix
...
bzr revid: nicolas.vanhoren@openerp.com-20120419153857-cdnau0g5yt2e1iy6
2012-04-19 17:38:57 +02:00
niv-openerp
3da11976a4
[fix] problem with editable lists & buttons
...
bzr revid: nicolas.vanhoren@openerp.com-20120419145051-41ywt5u35z04m8wm
2012-04-19 16:50:51 +02:00
niv-openerp
759be357ce
[imp] remaining of refactoring
...
bzr revid: nicolas.vanhoren@openerp.com-20120417121559-e94wr8ym8sb2f7c1
2012-04-17 14:15:59 +02:00
niv-openerp
f03e76c409
[fix] small problem in editable lists
...
bzr revid: nicolas.vanhoren@openerp.com-20120416160921-yzvyomy5jco0dsgm
2012-04-16 18:09:21 +02:00
niv-openerp
de10147813
[imp] small refactoring in form view
...
bzr revid: nicolas.vanhoren@openerp.com-20120416150839-vr45ozrqffc72qmk
2012-04-16 17:08:39 +02:00
Jacques-Etienne Baudoux
f8fc080545
[FIX] Fixed editable list view wrong class assignment.
...
bzr revid: cpa@tinyerp.com-20120511111527-4iz76pe2x815nd9n
2012-05-11 16:45:27 +05:30
niv-openerp
3899c7896e
[imp] more refactoring in rendering engine
...
bzr revid: nicolas.vanhoren@openerp.com-20120410122110-iz4w1f9b8838sio4
2012-04-10 14:21:10 +02:00
niv-openerp
6de6958a85
[imp] refactoring of form registries
...
bzr revid: nicolas.vanhoren@openerp.com-20120410120938-y0iwowq7hsvdzjji
2012-04-10 14:09:38 +02:00
niv-openerp
92b3a975f3
[imp] added save button in editable list
...
bzr revid: nicolas.vanhoren@openerp.com-20120327163417-qba5kkwtgulomjru
2012-03-27 18:34:17 +02:00
niv-openerp
078c2a4e8e
[imp] editable list wip
...
bzr revid: nicolas.vanhoren@openerp.com-20120327162513-7d4a58skbe0inv8n
2012-03-27 18:25:13 +02:00
niv-openerp
dcb5133a05
[imp] some improvements to editable list
...
bzr revid: nicolas.vanhoren@openerp.com-20120327155527-7fmlnpo4hzyx9buf
2012-03-27 17:55:27 +02:00
Fabien Meghazi
e59179f71f
[KK] Kill Kittens
...
bzr revid: fme@openerp.com-20120315115215-02kq4flqg95zq67r
2012-03-15 12:52:15 +01:00
niv-openerp
75d39c7f6a
[imp] renammed stop()
...
bzr revid: nicolas.vanhoren@openerp.com-20120221162912-zheko30qoh84hcoq
2012-02-21 17:29:12 +01:00
niv-openerp
efb48237bb
[imp] improved html generation in editable lists
...
bzr revid: nicolas.vanhoren@openerp.com-20120221105229-h7609f8boalmvl6q
2012-02-21 11:52:29 +01:00
niv-openerp
4f09c66c3b
[imp] removed useless class
...
bzr revid: nicolas.vanhoren@openerp.com-20120221101522-c9hkpg381cz6j5l4
2012-02-21 11:15:22 +01:00
niv-openerp
383f1750c5
[imp] wip
...
bzr revid: nicolas.vanhoren@openerp.com-20120221095856-656l1so4ejc06gih
2012-02-21 10:58:56 +01:00
Xavier Morel
2d08b98ea4
[FIX] bug introduced during xmo@openerp.com-20120208130738-pr92lh9qotki71o4
...
Change made registry inheritance "lazy", keeping a permanent relation
between child and parent and walking the tree to find matches.
But editable listviews relied on an implementation detail (that an
extension eagerly created keys in the children registry) and iterated
over the internal map of the child registry they'd just created to
replace the form keys with overridden versions of the form widgets.
Just iterate over form's registry, but really the editable list should
have its own Registry subclass doing that stuff more solidly.
bzr revid: xmo@openerp.com-20120209154844-zk2xuxdhhi57eqhp
2012-02-09 16:48:44 +01:00
Xavier Morel
f5ee468ca5
[REF] rename Registry#clone to Registry#extend
...
bzr revid: xmo@openerp.com-20120208124634-qucyuwlangw15nqh
2012-02-08 13:46:34 +01:00
Xavier Morel
ac8532f801
[FIX] pressing [ESC] while in an editable listview in a dialog should not close the dialog
...
bzr revid: xmo@openerp.com-20120123143614-c2cw93asd6n5qfqs
2012-01-23 15:36:14 +01:00
Xavier Morel
f4efb938e2
[FIX] forgot to forward arguments correctly in xmo@openerp.com-20120112084910-6fxbzbgmv51utyko
...
bzr revid: xmo@openerp.com-20120112102941-qa596ufk5nlc2nqp
2012-01-12 11:29:41 +01:00
Xavier Morel
12e3ef7fbf
[IMP] add lazier proxy method on CallbackEnabled, use it in WebClient and ListView
...
bzr revid: xmo@openerp.com-20120112084910-6fxbzbgmv51utyko
2012-01-12 09:49:10 +01:00
Fabien Meghazi
683aeeb2c5
[FIX] Fix some editable list styling bugs due to last styling merge
...
There is still one missing problem: once editing an existing row,
the font size is buggy.
bzr revid: fme@openerp.com-20111220201434-5gwo37br7qil1qp5
2011-12-20 21:14:34 +01:00
Fabien Meghazi
188615a35f
[IMP] Use proper name for edit_link option
...
bzr revid: fme@openerp.com-20111215133800-q8cypwxu7hps21ty
2011-12-15 14:38:00 +01:00
Fabien Meghazi
ef954a8a95
[ADD] ListView: Added pencil icon linking to form view
...
bzr revid: fme@openerp.com-20111214172952-xp4c6h6fccbyzt8r
2011-12-14 18:29:52 +01:00
Antony Lesuisse
e59a573534
[REM] revert arrow navigation in editable list (postponed)
...
bzr revid: al@openerp.com-20111211153010-mrydgknz0tg2tbqq
2011-12-11 16:30:10 +01:00
Xavier Morel
9268a1c680
[ADD] editable list navigation via KEY_UP and KEY_DOWN
...
Both start by saving the row being edited, then (if the save is successful) going to the record above or below them
bzr revid: xmo@openerp.com-20111208141923-1p1rm4mu0hikls6m
2011-12-08 15:19:23 +01:00
Xavier Morel
54f3f38957
[IMP] ListView#save_row internals by taking advantage of Deferred#pipe
...
and FormView#do_save returning a deferred of course.
bzr revid: xmo@openerp.com-20111208123846-dp3cgbsljl41q82k
2011-12-08 13:38:46 +01:00
Xavier Morel
37dee90724
[IMP] API for ListView#save_row (better use returned deferred)
...
* Deferred now provides creation flag and which record was edited on resolution
* Moved logic for editing next record (or creating a new one) to keyboard event handler
* Extracted keyboard even handler to prepare for new edition keys
bzr revid: xmo@openerp.com-20111208122946-221yve4amubqo1be
2011-12-08 13:29:46 +01:00
Xavier Morel
f3d4219164
[IMP] editable list UI
...
* removed cancel edition button
* used an icon for save edition button
bzr revid: xmo@openerp.com-20111208091055-j80gi36s0j5c3mpi
2011-12-08 10:10:55 +01:00
Xavier Morel
d00008c994
[FIX] if necessary, add padding when rendering a given row in an editable list.
...
otherwise there are columns missing, and the list looks broken
lp bug: https://launchpad.net/bugs/893055 fixed
bzr revid: xmo@openerp.com-20111123093313-8qair3pai8ms4ch7
2011-11-23 10:33:13 +01:00
Xavier Morel
8290deff05
[ADD] handle failure to save in ListView#ensure_saved: reject the deferred
...
bzr revid: xmo@openerp.com-20111027083617-medipetfasqvfacq
2011-10-27 10:36:17 +02:00