Commit Graph

324 Commits

Author SHA1 Message Date
Fabien Meghazi ba05ec55fd [ADD] Add sticky option to do_warn() and do_notify()
[IMP] Form view uses a notification when a record is not found in the database

bzr revid: fme@openerp.com-20120213123805-4dqg4oioous25nuo
2012-02-13 13:38:05 +01:00
Xavier Morel 76de030cde [ADD] UI to set default ir.values in web client's from view
lp bug: https://launchpad.net/bugs/888466 fixed

bzr revid: xmo@openerp.com-20120209151605-sqt0mzceqr8u160z
2012-02-09 16:16:05 +01:00
Xavier Morel be5bab60c8 [IMP] display string label of selection and m2o fields in defaults-setting dialog
bzr revid: xmo@openerp.com-20120209151410-49j13cfbrwwhrp23
2012-02-09 16:14:10 +01:00
Fabien Meghazi af15e1d83e [ADD] Added tipsy.clear()
bzr revid: fme@openerp.com-20120209135939-pcnmoswvnqjjb6ik
2012-02-09 14:59:39 +01:00
Fabien Meghazi 0d7ff5dec8 [FIX] Fix some tipsy stuff
Autobound on 'n' fails with absolute positioned elements.

Make tipsy checks that it's element is still attached to another element

bzr revid: fme@openerp.com-20120209105401-1jl11sy9z1qdwu3t
2012-02-09 11:54:01 +01:00
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 3294f58fdb [FIX] usage of Registry#clone
bzr revid: xmo@openerp.com-20120208161851-pip6d97o66uj6y35
2012-02-08 17:18:51 +01:00
Fabien Meghazi 7b3094ee8a [FIX] handle multilines in <label> tags of form views
bzr revid: fme@openerp.com-20120208143943-p6i12v8cd0ua831d
2012-02-08 15:39:43 +01:00
niv-openerp 44263a42b2 [fix] revert form refactoring branch
bzr revid: nicolas.vanhoren@openerp.com-20120208111110-p2nj0tehupxa0gmz
2012-02-08 12:11:10 +01:00
Fabien Meghazi 739b0d4861 [FIX] Binary#save_as does not send context. Breaks some accounting downloadable reports.
Example of broken report was : Accounting > Reporting > Legal Reports > Belgium Statements > Periodical VAT Declaration

bzr revid: fme@openerp.com-20120208103935-cv9nn9kg1vssosgm
2012-02-08 11:39:35 +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
Christophe Simonis 7d05f195d9 [FIX] handle multilines in <label> tags of form views
bzr revid: chs@openerp.com-20120207140628-4yxgxv849cjg5fl9
2012-02-07 15:06:28 +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 `&amp;` 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