Commit Graph
367 Commits
Author SHA1 Message Date
Antony Lesuisse 2c55b9339d [FIX] revert 1200 revid:fme@openerp.com-20111010150811-4vdff1jcr6eqz2xq, action manager must be used for client actions
bzr revid: al@openerp.com-20111010214634-dmq7fcv840252p8t
2011-10-10 23:46:34 +02:00
Antony Lesuisse 7f223e2d48 [FIX] ignore invalid url hashchanges
bzr revid: al@openerp.com-20111010203441-7b04w9ipkz1oxq8e
2011-10-10 22:34:41 +02:00
Fabien Meghazi 5a08fd1078 [IMP] Bring dashboard styling from trunk-style branch
bzr revid: fme@openerp.com-20111010150811-4vdff1jcr6eqz2xq
2011-10-10 17:08:11 +02:00
niv-openerp 5cdf82dd0a [fix] problem in idea view
bzr revid: nicolas.vanhoren@openerp.com-20111010150012-pty14q4z54zdtgvu
2011-10-10 17:00:12 +02:00
niv-openerp aaf01c6395 [fix] dirty fix of the problem with list views in o2m
bzr revid: nicolas.vanhoren@openerp.com-20111010143634-sjld7z726l6ebg53
2011-10-10 16:36:34 +02:00
niv-openerp 9857cb60fa [imp] removed asynchronous operations in buffered dataset, "l'amour du risque, papapalapapapa"
bzr revid: nicolas.vanhoren@openerp.com-20111010141804-zc6t2sr60twz6r4s
2011-10-10 16:18:04 +02:00
Fabien Meghazi d31295d65b [IMP] Added display_title in action flags. ViewManager won't display title if false.
Will be used for dashboards, wizards, ...

bzr revid: fme@openerp.com-20111010141546-b19g0sr4fzicehss
2011-10-10 16:15:46 +02:00
Fabien Meghazi ce2b437cad [FIX] Fixed visibility of binary fields buttons
bzr revid: fme@openerp.com-20111010133352-j4kgqu33dskdfm3f
2011-10-10 15:33:52 +02:00
niv-openerp 85b08d410f [fix] problem in o2m when using "save & next"
bzr revid: nicolas.vanhoren@openerp.com-20111010131202-gc0s7sbkffuh1dtk
2011-10-10 15:12:02 +02:00
niv-openerp fa9df495ef [fix] forgot some things
bzr revid: nicolas.vanhoren@openerp.com-20111010124516-5vtzop9sbr5z78r0
2011-10-10 14:45:16 +02:00
niv-openerp 33b4285d17 [imp] improved conceptually the preceding fix regarding o2m
bzr revid: nicolas.vanhoren@openerp.com-20111010124044-8c02gdeddceq78du
2011-10-10 14:40:44 +02:00
Fabien Meghazi ca224b647c [FIX] Dashboard are dulicated after undo
lp bug: https://launchpad.net/bugs/842808 fixed

bzr revid: fme@openerp.com-20111010122828-0ra0lft4vbp2mr9s
2011-10-10 14:28:28 +02:00
niv-openerp a9e7199158 [fix] quick fix of the regression in o2m to make it impossible to create a record
bzr revid: nicolas.vanhoren@openerp.com-20111010122412-gvfa460qpe09ad4g
2011-10-10 14:24:12 +02:00
niv-openerp c4296a85ac [fix] problem with some domains that need evaluation
bzr revid: nicolas.vanhoren@openerp.com-20111010112621-3kl83keyjingzus8
2011-10-10 13:26:21 +02:00
niv-openerp cb46665b01 [fix] some bugs with m2o & buttons while creation
bzr revid: nicolas.vanhoren@openerp.com-20111010095754-jfxvgtqvrfk3xqbn
2011-10-10 11:57:54 +02:00
niv-openerp 5e417f203a [imp] improved popup for m2o to support usage of buttons while creating a row
bzr revid: nicolas.vanhoren@openerp.com-20111010094438-33drycp4l7o1vnzt
2011-10-10 11:44:38 +02:00
niv-openerp e2e01eed83 [imp] mado o2m compatible with graph view
bzr revid: nicolas.vanhoren@openerp.com-20111007162156-10r2h2zws40oabnp
2011-10-07 18:21:56 +02:00
Xavier Morel 342b8e680b [FIX] search selection default value in case no default is set: select option with value 'false' if there's any
bzr revid: xmo@openerp.com-20111007082905-86zc0dzwu0bv4bwz
2011-10-07 10:29:05 +02:00
Xavier Morel 28b0daeaff [FIX] correctly update pager when adding a new record in an editable list
bzr revid: xmo@openerp.com-20111007072019-l59qcgikjeu71v26
2011-10-07 09:20:19 +02:00
Xavier Morel acc3d54316 [ADD] update pager on record deletion
bzr revid: xmo@openerp.com-20111007071756-h73imu0g4tl3fhay
2011-10-07 09:17:56 +02:00
Xavier Morel 6c1499ecd9 [FIX] clear in search views should clear small filters as well
bzr revid: xmo@openerp.com-20111006152332-g0ifsv53jwq66u9u
2011-10-06 17:23:32 +02:00
Xavier Morel 404db3a08b [FIX] correctly handle 'false' value on selection fields
bzr revid: xmo@openerp.com-20111006145439-mklud8aaezmd2b1p
2011-10-06 16:54:39 +02:00
Fabien Meghazi 5db16cd946 [FIX] Confirmation dialog buttons won't close the dialog
bzr revid: fme@openerp.com-20111006132241-b4491vh5jm4ct974
2011-10-06 15:22:41 +02:00
Fabien Meghazi 84a94d7ec9 [FIX] Button@special=cancel should not trigger form save
bzr revid: fme@openerp.com-20111006121411-sltmagi0n068fbym
2011-10-06 14:14:11 +02:00
Xavier Morel bcaac70b1b [FIX] make m2o form fields focusable
bzr revid: xmo@openerp.com-20111006120425-z154ck3xez87ufbr
2011-10-06 14:04:25 +02:00
Xavier Morel cecd7f5e55 [FIX] duplicated element_class on form widgets (on container and widget), and some incorrect element_id breaking click-on-label behavior
bzr revid: xmo@openerp.com-20111006114127-vc4mbflum68pjlbo
2011-10-06 13:41:27 +02:00
Xavier Morel 06787922c0 [FIX] selection field value in case there's no value (haha)
bzr revid: xmo@openerp.com-20111006100235-2x41tzki77sk6i3v
2011-10-06 12:02:35 +02:00
Xavier Morel 0fc5a423e3 [FIX] don't screw up typing of selection values in search view
bzr revid: xmo@openerp.com-20111006095301-98cda38m1y270f3m
2011-10-06 11:53:01 +02:00
Fabien Meghazi 5df08eb7d7 [FIX] m2o: Search More cause a traceback. (views now excpect to receive evaluated domain, context and group_by)
bzr revid: fme@openerp.com-20111006092247-zcbnrdbld00somam
2011-10-06 11:22:47 +02:00
Fabien Meghazi 9380f9ae30 [FIX] 'Select' button for file upload not working in wizards
lp bug: https://launchpad.net/bugs/860736 fixed

bzr revid: fme@openerp.com-20111006085138-dqezqznktrimhrxm
2011-10-06 10:51:38 +02:00
Xavier Morel a3a45e18b3 [FIX] m2o fields with selection widget in search view
Plan was originally to just ignore this because "it should just work"
 but turns out m2o and m2o[@widget=selection] fields have very
 different behaviors when it comes to default values, especially
 custom domains and contexts:

 * An m2o field uses its string value always (behaves like a char
   field), for UI and clarity purposes we added an [[name, '=', id]]
   case when the user specifically selects an autocompletion value,
   but that's not "cannon", when it comes to dealing with custom
   domains (filter_domain) and contexts the field always uses its
   string value.

* An m2o[@widget=selection] field on the other hand uses its ids
  always (behaves like a selection field).

  That's not entirely true, really, because it has the converse to
  what we implemented on the m2o field in the web client (in the GTK
  client): if there is no @filter_domain *and* the user has entered a
  value which is not in the dropdown (it's a combobox in the GTK
  client), then it falls back on using 'ilike'. This string value is
  *not* used in custom domains and custom filters, which simply are
  not submitted.

  This second section has *not* been implemented so far in the web
  client, we'll come round to it if people actually need it.

bzr revid: xmo@openerp.com-20111006063949-fl5rbg3wwubcaay8
2011-10-06 08:39:49 +02:00
Fabien Meghazi 65745d5142 [FIX] Do not compute modifiers for aggregates in list view.
lp bug: https://launchpad.net/bugs/865188 fixed

bzr revid: fme@openerp.com-20111005153202-4ao575zh3885ukuy
2011-10-05 17:32:02 +02:00
Xavier Morel d801f21146 [REV] 1150, broke filter_domain in case of empty field
bzr revid: xmo@openerp.com-20111005130252-oovrpbo4a1pjavwd
2011-10-05 15:02:52 +02:00
Xavier Morel 072bb3d8ec [FIX] viewmanageraction loading: auto_search is the default, not the exception
this means if the auto_search attribute is missing, search automatically. Search should only
be prevented if auto_search is precisely false

bzr revid: xmo@openerp.com-20111005111210-qju8ocbhvqahczsz
2011-10-05 13:12:10 +02:00
Xavier Morel 68cd9188b9 [FIX] handling of value and default domain in search m2o
bzr revid: xmo@openerp.com-20111005105731-9431uvhay91bt10c
2011-10-05 12:57:31 +02:00
Fabien Meghazi 19b7493711 [FIX] When reaching ir_actions_act_window_close without dialog, call on_closed if any
The static homepage do not reload the page when the module installed have no configuration actions (eg: returning direcly ir_actions_act_window_close)

bzr revid: fme@openerp.com-20111005101714-s5jy3gslni00a5jo
2011-10-05 12:17:14 +02:00
Fabien Meghazi a33bd2344c [IMP] Improved styling of labels
bzr revid: fme@openerp.com-20111005083521-ofyfzdp8olzpjnbd
2011-10-05 10:35:21 +02:00
niv-openerp 15a6b81dbe [fix] just return a promise where necessary
bzr revid: nicolas.vanhoren@openerp.com-20111004161116-6pylm16ty6v69szu
2011-10-04 18:11:16 +02:00
Xavier Morel 318ec9998b [IMP] use .children(selector) rather than .find('> ' + selector)
bzr revid: xmo@openerp.com-20111004155918-c2vy0rwkesvdkmli
2011-10-04 17:59:18 +02:00
Xavier Morel 49de0f4640 [FIX] stupidity: if insert a line in a list with more than 5 records (no padding), since the new line does not have a @data-id yet it's going to remove it immediately.
select line to remove before inserting new one

bzr revid: xmo@openerp.com-20111004155746-q13ieg0q6lsy1uf7
2011-10-04 17:57:46 +02:00
Xavier Morel 74db7dd027 [FIX] correctly handle insertion in empty editable list
bzr revid: xmo@openerp.com-20111004154650-hx56g1lmefhzgf21
2011-10-04 17:46:50 +02:00
Xavier Morel 72b852c2c6 [FIX] insertion position of new lines (in editable lists) in case of lists padded to 5 (empty) lines
bzr revid: xmo@openerp.com-20111004154246-7o1cw016cf9ygem3
2011-10-04 17:42:46 +02:00
Xavier Morel f164496dc4 [FIX] correctly call form field's update_dom in all cases in editable listview
Form fields are extended/replaced in editable list view in order to
handle @invisible and @tree_invisible correctly in editable-list-form
context (base semantics of @invisible are different between listview
and formview, formview's @invisible is listview's @tree_invisible, and
instead of removing element from visible DOM listview's @invisible
only hides the element but it keeps the space it's taking).

As a result, listview editable needs to override Widget.update_dom for
pretty much all form widgets, in order to manage this difference in
behavior.

In case of @tree_invisible, it did so correctly setting and unsetting
its stuff and calling this.super() to execute the widget's actual
update_dom triggers **but it did not do so when the element was really
visible**.

As a result, in editable listview elements would never appear required
(blue background), invalid (red background) or disabled (gray),
although they were correctly set up, because the display layer was
never updated.

bzr revid: xmo@openerp.com-20111004151031-65o0q8e86op7kdks
2011-10-04 17:10:31 +02:00
Xavier Morel fb2e7a4a06 [FIX] have form widget elements behave correctly in case of classes with dots. Thanks valentin
bzr revid: xmo@openerp.com-20111004132854-sg8vo4m3b4bvtecf
2011-10-04 15:28:54 +02:00
Xavier Morel 29cef016f9 [FIX] re-rendering of a given list's row (e.g. onchange, edition, etc...): 'view' needs to be in the context so the row's color can be computed
bzr revid: xmo@openerp.com-20111004104848-277ajqmaud8oc8hn
2011-10-04 12:48:48 +02:00
Xavier Morel 3190884fa1 [FIX] don't perform a search_read when switching view from list to form
I don't remember why I did that originally, it does not seem to serve any purpose and it causes problems in case of records with binary fields

bzr revid: xmo@openerp.com-20111004102115-lz6kgyiw35vp1t99
2011-10-04 12:21:15 +02:00
Valentin Lab 63cf2019e5 [imp] more efficient selector.
bzr revid: valentin.lab@kalysto.org-20111004102050-http3jvu0sf78fmx
2011-10-04 12:20:50 +02:00
Fabien Meghazi f76b2f55ae [MERGE] ViewManager now triggers do_search() in on_mode_switch()
The views doesn't have to worry about the search in do_show().
They just have to listen to do_search() if they are searchable.

bzr revid: fme@openerp.com-20111004094738-at91ab6a2kkxf8bq
2011-10-04 11:47:38 +02:00
Xavier Morel 112710c783 [IMP] move fetching notebook page widget into form widgets registry, thanks Valentin
bzr revid: xmo@openerp.com-20111004085119-ll3x1s2r2akcm8p2
2011-10-04 10:51:19 +02:00
Fabien Meghazi e2b6e03c3c [FIX] Save last search before triggering do_search
bzr revid: fme@openerp.com-20111004075039-n8a30wnuueiwnbwt
2011-10-04 09:50:39 +02:00