Commit Graph

314 Commits

Author SHA1 Message Date
Xavier Morel fe31030bd2 [ADD] UI for set_default in form view sidebar
bzr revid: xmo@openerp.com-20120208122153-k11n7u47n1bo63sv
2012-02-08 13:21:53 +01:00
Xavier Morel 8c0791ca17 [FIX] protection against self-recursive onchanges: add to the processed field list during call to onchange, not right before checking for it
processed field list protects against onchange recursion (direct or indirect), but it also prevented from triggering onchanges on other fields as well

bzr revid: xmo@openerp.com-20120207161733-wh2hqtax4s1nx9ic
2012-02-07 17:17:33 +01:00
Xavier Morel bba8fde187 [ADD] handling of change_default to onchange process
bzr revid: xmo@openerp.com-20120207160158-kxbue424wa3nxz03
2012-02-07 17:01:58 +01:00
niv-openerp 243d524978 [imp] polish render and render_element usage
bzr revid: nicolas.vanhoren@openerp.com-20120207130125-xexqks24jb7mguy8
2012-02-07 14:01:25 +01:00
niv-openerp d0ae0403f5 [imp] changed name of template in form widgets
bzr revid: nicolas.vanhoren@openerp.com-20120207122556-f4lzt5kjy72fnssu
2012-02-07 13:25:56 +01:00
niv-openerp e5f05086cb [imp] simplified escaping of form class namees
bzr revid: nicolas.vanhoren@openerp.com-20120207121353-0fy9djh2osxjbdof
2012-02-07 13:13:53 +01:00
niv-openerp 1ce8ef8f0f [imp] made start of widgets recursive
bzr revid: nicolas.vanhoren@openerp.com-20120207120811-juejxm2mq3xcjxga
2012-02-07 13:08:11 +01:00
niv-openerp 7cb86686ea [imp] removed strange condition in on_loaded
bzr revid: nicolas.vanhoren@openerp.com-20120207120539-ga91yxjqyqabgoa1
2012-02-07 13:05:39 +01:00
niv-openerp 9fb0a22b86 [imp] nivified notebook
bzr revid: nicolas.vanhoren@openerp.com-20120207111451-le08xlmqfhalkcgm
2012-02-07 12:14:51 +01:00
niv-openerp a898146cc1 [imp] nivified frames
bzr revid: nicolas.vanhoren@openerp.com-20120207110931-3z2iz6c3qb3b9xv0
2012-02-07 12:09:31 +01:00
niv-openerp ed9eeea3db [imp] nivified root frame
bzr revid: nicolas.vanhoren@openerp.com-20120207110129-psfxmdiw9c2gvxtp
2012-02-07 12:01:29 +01:00
niv-openerp 6143bf6680 [imp] polished renderind methods
bzr revid: nicolas.vanhoren@openerp.com-20120207103512-pzkugr4dm0ag7rsh
2012-02-07 11:35:12 +01:00
niv-openerp 5a4d636c44 [imp] externalized setting of $element
bzr revid: nicolas.vanhoren@openerp.com-20120207102307-4vc60e6y61eokawf
2012-02-07 11:23:07 +01:00
niv-openerp ceaeea239d [imp] externalized form widget element_class creation
bzr revid: nicolas.vanhoren@openerp.com-20120207101936-c40ot5upi5g57rnx
2012-02-07 11:19:36 +01:00
niv-openerp a19a8d673e [imp] externalized widget creation
bzr revid: nicolas.vanhoren@openerp.com-20120207101131-vz0s9bxiemml48fs
2012-02-07 11:11:31 +01:00
Vaibhav (OpenERP) af2d74f26c [FIX] lost field context while popup search view loaded. ex. in case of account tax m2m
lp bug: https://launchpad.net/bugs/912814 fixed

bzr revid: vda@tinyerp.com-20120127112050-xu7yljp0a2mh01km
2012-01-27 16:50:50 +05:30
Xavier Morel 4939d6631a [IMP] error reporting in domain evaluation
bzr revid: xmo@openerp.com-20120203084852-ogaxcye1pltfwtvv
2012-02-03 09:48:52 +01:00
Fabien Meghazi 5e7b30e996 [FIX] Do not FormView#do_show() twice on cold do_load_state()
bzr revid: fme@openerp.com-20120201154442-gwbdm99wy8qahwie
2012-02-01 16:44:42 +01:00
Xavier Morel b9cb00f8de [IMP] change bounding function of tipsy to try to avoid tooltips being cut off
lp bug: https://launchpad.net/bugs/924286 fixed

bzr revid: xmo@openerp.com-20120131155208-ugzig1m90y4a86gk
2012-01-31 16:52:08 +01:00
Xavier Morel 52fc5d5023 [FIX] double htmlescaping in m2o fields when selecting an autocomplete choice
When providing values to the autocomplete, there are two keys used by
the autocomplete system itself:
* A mandatory label
* An optional value

If the value is not specified, the autocomplete will use the label
*but* it will htmlescape the label's value before setting it on the
input, while the provided label is raw HTML.

While this protects the input, if the label was already htmlescaped
(because it's user-provided data and may contain e.g. ampersands) in
order not to break the autocompletion list, it will end up
double-escaped with e.g. `&` characters replaced by `&` in
user-visible text.

The fix is to use the `value` key and set it to unescaped text data,
the widget will escape it before setting it on the field yielding the
correct user-facing result.

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

bzr revid: xmo@openerp.com-20120131090226-8r64u4w3bb36se7n
2012-01-31 10:02:26 +01:00
Fabien Meghazi 1b011182da [FIX] Tooltips stays visible after it's trigger element has been removed
bzr revid: fme@openerp.com-20120126143734-7zl3gczn5x61k2u1
2012-01-26 15:37:34 +01:00
Fabien Meghazi 06061d4872 [FIX] Changed tooltip plugin that caused problems under firefox
bzr revid: fme@openerp.com-20120126132441-wxg1gumrq9uetd70
2012-01-26 14:24:41 +01:00
Fabien Meghazi c0b2ee7dc2 [IMP] Use a different controller for fields @type=id always readonly
bzr revid: fme@openerp.com-20120125140438-rr1bh20st75rq45y
2012-01-25 15:04:38 +01:00
Fabien Meghazi 4ffe5f5545 [FIX] Special case id fields
lp bug: https://launchpad.net/bugs/919184 fixed

bzr revid: fme@openerp.com-20120125111628-vsz6mwptd7bm8hlm
2012-01-25 12:16:28 +01:00
Fabien Meghazi 82b7eb4951 [FIX] on_change not working on reference fields
lp bug: https://launchpad.net/bugs/919225 fixed

bzr revid: fme@openerp.com-20120125100824-s2bof7zm80mith41
2012-01-25 11:08:24 +01:00
Xavier Morel 7ce1aad7ec [IMP] terminate statements, remove extraneous statement terminations
bzr revid: xmo@openerp.com-20120125085310-zzwjrll47n61hw8w
2012-01-25 09:53:10 +01:00
Xavier Morel 084bf9fb3f [FIX] in m2o fields, abort previous name_get when new one (for same field) arrives in order to limit the number of requests in-flight
lp bug: https://launchpad.net/bugs/920884 fixed

bzr revid: xmo@openerp.com-20120124141927-wznbkd2tf3mngq31
2012-01-24 15:19:27 +01:00
niv-openerp c044b70429 [imp] removed identifier_prefix
bzr revid: nicolas.vanhoren@openerp.com-20120124151343-t17b3obenv244io3
2012-01-24 16:13:43 +01:00
niv-openerp 3002bd091f [imp] removed bunch of old stuff in widget
bzr revid: nicolas.vanhoren@openerp.com-20120124145810-lr2y8igt9iqzqepn
2012-01-24 15:58:10 +01:00
Fabien Meghazi c4f06ec837 [FIX] Reference field problem, missing get_selected_ids()
bzr revid: fme@openerp.com-20120124103847-qqui2y5vbrqejey3
2012-01-24 11:38:47 +01:00
Xavier Morel 8bd3c7035e [IMP] add a 'default' key to 'on_prev_view' so switchers can force an other view if needed
bzr revid: xmo@openerp.com-20120124093033-297o9np9mxhm9zpy
2012-01-24 10:30:33 +01:00
Xavier Morel 9b54bdeb18 [ADD] dynamic view: handle setting domains via onchange
lp bug: https://launchpad.net/bugs/911676 fixed

bzr revid: xmo@openerp.com-20120120105608-zjbam8ki4uoqer5v
2012-01-20 11:56:08 +01:00
Xavier Morel 766c664d6d [FIX] extend revid:fme@openerp.com-20120117124417-k3vdiktc93gl99fi to all instances of Firefox
bug randomly happens on FF 9.0.1/OSX as well

bzr revid: xmo@openerp.com-20120119114614-6br6qj4byhy0ct1a
2012-01-19 12:46:14 +01:00
niv-openerp 5182408541 [imp] added id to fields values to please tfr
bzr revid: nicolas.vanhoren@openerp.com-20120118161517-dz9nwcgp49vbqgwj
2012-01-18 17:15:17 +01:00
Xavier Morel 68c97bd36b [FIX] buttons order in dialog confirming actions
bzr revid: xmo@openerp.com-20120117153333-6cuih7w3iuuv1mlk
2012-01-17 16:33:33 +01:00
Xavier Morel 98f0b22d9a [MERGE] qweb casing fix
bzr revid: xmo@openerp.com-20120117140254-ans3ugulji5h61vw
2012-01-17 15:02:54 +01:00
Xavier Morel 07a459f2d4 [FIX] trailing commas
bzr revid: xmo@openerp.com-20120117132843-obecwigtts1rf9ja
2012-01-17 14:28:43 +01:00
Fabien Meghazi 809968ecfd [FIX] Char fields don't correctly retain their values in Firefox 3.6
Unknown bug in old version of firefox :
input type=text onchange event not fired when tootip is shown

Disabled tooltips for gecko version < 2

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

bzr revid: fme@openerp.com-20120117124417-k3vdiktc93gl99fi
2012-01-17 13:44:17 +01:00
Xavier Morel ecfcf9c409 [REM] wiki field from form and page
bzr revid: xmo@openerp.com-20120117111938-rmjgsw309q6gltxe
2012-01-17 12:19:38 +01:00
Fabien Meghazi 246fee51c6 [IMP] Updated jquery.tipTip
bzr revid: fme@openerp.com-20120117103217-jmjhm6i1baaljmty
2012-01-17 11:32:17 +01:00
Fabien Meghazi 2606558efa [FIX] some accounting report do not work
lp bug: https://launchpad.net/bugs/914183 fixed

bzr revid: fme@openerp.com-20120116132554-1reoy6gg4lpynsij
2012-01-16 14:25:54 +01:00
Fabien Meghazi 0618ebfe27 [IMP] FormView: Only show invalid field on_ui_change and do_save
bzr revid: fme@openerp.com-20120116111431-8zm8883ull42ljgx
2012-01-16 12:14:31 +01:00
Fabien Meghazi 064a50bcde [FIX] Fields validation is not always triggered.
Eg: in Create a Partner action button from leads form, changing selection then clicking Continue is allowed despite the fact that the second field is invalid.

bzr revid: fme@openerp.com-20120116105258-4kkvr39i3fd3za1w
2012-01-16 11:52:58 +01:00
Fabien Meghazi dad51038e6 [IMP] Parse progress bar show value
lp bug: https://launchpad.net/bugs/900624 fixed

bzr revid: fme@openerp.com-20120116104330-hc5olrw6tiudrj0f
2012-01-16 11:43:30 +01:00
Fabien Meghazi 61b4bedcab [FIX] Problem with DateTimeWidget
bzr revid: fme@openerp.com-20120116090243-ktqate17r1pq39ad
2012-01-16 10:02:43 +01:00
niv-openerp 8c06e573a9 [fix] problem with DateTimeWidget
bzr revid: nicolas.vanhoren@openerp.com-20120113110459-0p2xl3t90j4nasxe
2012-01-13 12:04:59 +01:00
niv-openerp 059a8068f2 [fix] problem with email template preview
bzr revid: nicolas.vanhoren@openerp.com-20120112153419-morwrmy7ozqxup6f
2012-01-12 16:34:19 +01:00
Fabien Meghazi 2ea7dae91f [FIX] Fix default field focus that was broken
bzr revid: fme@openerp.com-20120112151527-peee706mfv7nciye
2012-01-12 16:15:27 +01:00
Fabien Meghazi 301ccd20b2 [REM] Commented out a debug logging
bzr revid: fme@openerp.com-20120112144547-s4vziyeazy1at8ag
2012-01-12 15:45:47 +01:00
Fabien Meghazi 5be2f1123f [REM] Commented out some debug output
bzr revid: fme@openerp.com-20120112124456-yvegpuajefyg26uo
2012-01-12 13:44:56 +01:00