Antony Lesuisse
4b67791920
[FIX] working urls
...
bzr revid: al@openerp.com-20111214180442-51bny4wq12qs4okk
2011-12-14 19:04:42 +01:00
Antony Lesuisse
7991d820f5
[MERGE] trunk
...
bzr revid: al@openerp.com-20111214172434-u2i6im40bviq229q
2011-12-14 18:24:34 +01:00
Antony Lesuisse
d1ddc1ee78
[IMP] factorise View.do_show do_hide
...
bzr revid: al@openerp.com-20111214171811-c4bka4nwylp3wn21
2011-12-14 18:18:11 +01:00
Christophe Simonis
99ffc0507f
[WIP] better url management, only views are allowed to call this.do_push_state
...
bzr revid: chs@openerp.com-20111214160958-fb0dtboz2smakb6p
2011-12-14 17:09:58 +01:00
Fabien Meghazi
5eb0b2a10f
[IMP] o2m: do not display action buttons in views used by one2many
...
bzr revid: fme@openerp.com-20111214155441-8o7ba0yf35f9hy7m
2011-12-14 16:54:41 +01:00
Fabien Meghazi
ce67d2252c
[FIX] Make Field boolean readonly inherit of form's view boolean Field
...
bzr revid: fme@openerp.com-20111214132306-l33r94vm16lpxeko
2011-12-14 14:23:06 +01:00
Xavier Morel
5e451bd3a3
[IMP] remove deferred stack
...
bzr revid: xmo@openerp.com-20111213153343-oj2ph04h3ac32pm6
2011-12-13 16:33:43 +01:00
Xavier Morel
987a9cc07b
[IMP] merge title of o2m list view into list header
...
bzr revid: xmo@openerp.com-20111213144955-o4menzpyak0c1ugx
2011-12-13 15:49:55 +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
Fabien Meghazi
0ce87ab853
[FIX] Fix problem with reference field. Field is not reset when set_value(false)
...
bzr revid: fme@openerp.com-20111208122851-gd2v732m4105x3bh
2011-12-08 13:28:51 +01:00
Xavier Morel
eacd5ff1f2
[FIX] have readonly m2m fields open their form popup in readonly mode
...
bzr revid: xmo@openerp.com-20111208104742-k8rapp1l49wyayst
2011-12-08 11:47:42 +01:00
Xavier Morel
22fb18bcbf
[ADD] special case: creating a record from list goes back to page view, not list view
...
bzr revid: xmo@openerp.com-20111207153101-kzpolvmvmxnjl20m
2011-12-07 16:31:01 +01:00
Fabien Meghazi
ec123c78db
[FIX] Disable tooltip when clicking on action buttons
...
bzr revid: fme@openerp.com-20111207113559-128r2hkg4x62in2i
2011-12-07 12:35:59 +01:00
Xavier Morel
f3c671cbd8
[ADD] push/pop API for views
...
lp bug: https://launchpad.net/bugs/900225 fixed
bzr revid: xmo@openerp.com-20111207104503-gcy0gbin36s4uudh
2011-12-07 11:45:03 +01:00
Xavier Morel
d313f16078
[FIX] use page view in readonly o2ms, readonly form popups
...
bzr revid: xmo@openerp.com-20111207094242-0m1hdadhy4xaqkm0
2011-12-07 10:42:42 +01:00
Xavier Morel
edcbc3830e
[MERGE] trunk
...
bzr revid: xmo@openerp.com-20111207091404-1zdmhmsnvhveq7c4
2011-12-07 10:14:04 +01:00
Xavier Morel
b7aa4e4712
[FIX] ensure o2m widget has saved its sub-views before it returns its value to its parent form view
...
This is currently highly faillible as saving a form or a list view can
be an async operation, yet the FormView's `Widget#get_value` call can
only be synchronous. As a result, there are cases where saving a form
view can fail to get the correct value for its o2m fields.
Ideally, `Widget#get_value` should be an async API (or a sync/async API)
bzr revid: xmo@openerp.com-20111205153813-nvgy5413oyf5zsla
2011-12-05 16:38:13 +01:00
Fabien Meghazi
986ff55624
[FIX] Fix form and page buttons
...
bzr revid: fme@openerp.com-20111205135037-g9y8obto3y8rsuki
2011-12-05 14:50:37 +01:00
Fabien Meghazi
8aadbe5288
[IMP] Disable dirty form check until page view and buttons refactoring is done
...
bzr revid: fme@openerp.com-20111205094838-lddbf0tv64e8rxn1
2011-12-05 10:48:38 +01:00
Fabien Meghazi
06e9cc9fb5
[FIX] On new record, FormView shall apply on_changes to fields using same order as defined in view
...
bzr revid: fme@openerp.com-20111201155029-bi4zjgvwkt7gjapy
2011-12-01 16:50:29 +01:00
Roberto López López (OpenERP)
04ce8687aa
[ADD] cleanup JS calls/functions for the new page view
...
bzr revid: rlo@openerp.com-20111201122233-6bh2zilnixvz7m2r
2011-12-01 13:22:33 +01:00
Xavier Morel
e1350e9847
[IMP] client looks
...
bzr revid: xmo@openerp.com-20111201085457-pqejp3mgopwf7yxy
2011-12-01 09:54:57 +01:00
Xavier Morel
70b2384215
[FIX] default alignment of paragraphs
...
lp bug: https://launchpad.net/bugs/898193 fixed
bzr revid: xmo@openerp.com-20111130155534-xzgq8tkg0zhyjceg
2011-11-30 16:55:34 +01:00
Antoine Huvelle
502ce13561
resolving kanban.css
...
bzr revid: ahu@openerp.com-20111130102450-j82xrxm70j8x3msf
2011-11-30 11:24:50 +01:00
Roberto López López (OpenERP)
5b0783dd7a
[ADD] page view split out from form view
...
bzr revid: rlo@openerp.com-20111129143911-ac4ptj0nh2nsbdqo
2011-11-29 15:39:11 +01:00
Fabien Meghazi
32d3c44e3e
[FIX] Do not alter field.selection in SelectionField. Clone the array instead.
...
Revert #1550 : debug information should not be altered.
bzr revid: fme@openerp.com-20111124134627-mx3k2s22naht07go
2011-11-24 14:46:27 +01:00
Antoine Huvelle
637398a538
[ADD] adding a new css class 'oe_form_readonly' to the uneditable form to ease css selection and changes
...
bzr revid: ahu@openerp.com-20111124130253-zcmgizy9vmhk90yb
2011-11-24 14:02:53 +01:00
Xavier Morel
6ae439dab0
[FIX] default search values set on m2o field contexts were not propagated to the m2o search dialog
...
on selecting 'search more' in autocompletion or 'search' from icon menu
bzr revid: xmo@openerp.com-20111124104305-kfr33cqcq5uuvzye
2011-11-24 11:43:05 +01:00
Tejas (OpenERP)
c671dfb9f1
search_defaults move inside anonymous function and declare variable with var
...
bzr revid: tta@openerp.com-20111124055521-1il265hvfdvfihx1
2011-11-24 11:25:21 +05:30
Tejas (OpenERP)
11a967f38e
[tta] use rpc to get right context, search with right contexts
...
bzr revid: tta@openerp.com-20111123103000-vf6zrj1lzgrm6gbo
2011-11-23 16:00:00 +05:30
Xavier Morel
5251a34a62
[FIX] extend size of statusbar widget by 1 if we're removing the label from it
...
lp bug: https://launchpad.net/bugs/889224 fixed
bzr revid: xmo@openerp.com-20111122143554-p1j1v8b1652djc58
2011-11-22 15:35:54 +01:00
Xavier Morel
998fd0dab6
[ADD] support for literal numbers in on_change specs
...
bzr revid: xmo@openerp.com-20111122124353-kfibt1cdvmy2pzp4
2011-11-22 13:43:53 +01:00
Tejas (OpenERP)
733941e979
Fix search m2o field, default added
...
bzr revid: tta@openerp.com-20111122104145-ce1z32beh8ef6346
2011-11-22 16:11:45 +05:30
Xavier Morel
a738f4390f
[FIX] do not reload sidebar during form's on_loaded if it's already setup
...
There's no information provided to FormView#on_loaded which should
change the sidebar and reloading it apparently breaks
stuff... severely.
So just don't touch it if it's already setup (assigned to instance
variable), everything works right (as the readonly mode fundamentally
only changes the way the form is displayed, it should not alter its
internal behaviors)
lp bug: https://launchpad.net/bugs/891117 fixed
bzr revid: xmo@openerp.com-20111122102609-faldd3xkc0xhzvu2
2011-11-22 11:26:09 +01:00
Xavier Morel
2e5d7852f4
[FIX] comma-terminated object literals
...
bzr revid: xmo@openerp.com-20111122101950-mng5zy4os3mukj6d
2011-11-22 11:19:50 +01:00
Xavier Morel
11bc9e1ad8
[ADD] support for string literals in on_change specifications, some tests for parsing of on_change specs
...
bzr revid: xmo@openerp.com-20111122094416-knguk9qgpnd1f9ws
2011-11-22 10:44:16 +01:00
Fabien Meghazi
5c014979c2
[IMP] Ensure form is saved when xmo's protocol for sidebar context is used
...
bzr revid: fme@openerp.com-20111121163441-y200rwxk4g2jtzuj
2011-11-21 17:34:41 +01:00
Xavier Morel
84d46bf4ec
[FIX] provide for values to sidebar links context
...
lp bug: https://launchpad.net/bugs/871714 fixed
bzr revid: xmo@openerp.com-20111121141418-x4623mk77ljx4nlv
2011-11-21 15:14:18 +01:00
Xavier Morel
b40b60e278
[IMP] use _.map to extract values from onchange parameter names, instead of doing it indirectly via _.each
...
bzr revid: xmo@openerp.com-20111121124532-ndo2me1ehos7mu0m
2011-11-21 13:45:32 +01:00
Xavier Morel
8f67c5c367
[ADD] support for string literals in form @on_change
...
lp bug: https://launchpad.net/bugs/889741 fixed
bzr revid: xmo@openerp.com-20111121124145-6i2kvesyc689g3ez
2011-11-21 13:41:45 +01:00
Fabien Meghazi
8ca42daf0a
[FIX] Apply same behavior as gtk+ and old web clients concerning fields to be saved/created
...
Special case 'id' field, do not save this field
on 'create' : save all non readonly fields
on 'edit' : save non readonly modified fields
lp bug: https://launchpad.net/bugs/891164 fixed
bzr revid: fme@openerp.com-20111121124030-egiajgy6fgokwmm1
2011-11-21 13:40:30 +01:00
Xavier Morel
9d09c570ae
[ADD] support for arguments-less onchange (why the hell not)
...
bzr revid: xmo@openerp.com-20111121122845-98lctm470ncttz74
2011-11-21 13:28:45 +01:00
Xavier Morel
e3a84ed7b6
[IMP] throw actual error objects to improve debugging experience
...
bzr revid: xmo@openerp.com-20111121120509-fa0rqj50w3zombs1
2011-11-21 13:05:09 +01:00
Xavier Morel
ca95467bef
[IMP] extract parsing of onchange specs into a separate method
...
bzr revid: xmo@openerp.com-20111121120413-xw2aanwbte79y8cr
2011-11-21 13:04:13 +01:00
Xavier Morel
7c629a31cc
[FIX] synchronization of o2m widget saving, avoid race condition when clicking on button of unsaved record
...
After saving, the formview would both refresh the form and lauch the
action itself, which launches a refresh of its own.
Issue is that o2m's filling of themselves (a read) is async and
triggered by the set_value on the o2m field, so the second reload of
the form would be interspersed (between the first reload and the end
of the o2ms loading), resulting in corrupted state for the o2ms if the
button's action somehow changed the contents of the o2m (it would
remove the old records and return brand new ids during the refresh):
the set_value on the o2m would empty the o2m's dataset cache, and the
returning fetch request would try to find in cache values removed from
it, or something, blowing up everything.
Anyway, this was fixed by ensuring the button action is only executed
after the form is completely done doing its post-save reload (using
the new async set_value). This is a tiny bit brittle in that onchanges
are synchronous but call set_value, so a set_value on an o2m from an
onchange may have issues. It also increases the flicker of the view,
as the o2m is reloaded twice in quick succession.
lp bug: https://launchpad.net/bugs/885658 fixed
bzr revid: xmo@openerp.com-20111117161426-72jzhvv3dm387uom
2011-11-17 17:14:26 +01:00
Xavier Morel
6bd9084740
[FIX] issues with asynchronous set_value handling
...
* field could be changed from under the closure, use _.each
* There's a bug in Deferred.queue() when passing synchronous deferred
(including non-deferred) it's instantanously resolved
bzr revid: xmo@openerp.com-20111117160009-s702939kji69v3zf
2011-11-17 17:00:09 +01:00
Fabien Meghazi
efbef31770
[FIX] callers of on_record_loaded to use promises
...
bzr revid: fme@openerp.com-20111117131816-991odq4m45146vfv
2011-11-17 14:18:16 +01:00