Commit Graph

1307 Commits

Author SHA1 Message Date
Fabien Meghazi 73b99d0932 [FIX] IE9: traceback in Reporting when changing type of view
lp bug: https://launchpad.net/bugs/1091715 fixed

bzr revid: fme@openerp.com-20130221221025-dnqws0lwq0bvwi4o
2013-02-21 23:10:25 +01:00
Fabien Meghazi 5c8bb9a089 [FIX] FormOpenPopup does not trigger on_button_cancel
bzr revid: fme@openerp.com-20130219143215-68izxr278eu77sn0
2013-02-19 15:32:15 +01:00
Fabien Meghazi ffab924c08 [FIX] FieldStatus does not re-render when view change
bzr revid: fme@openerp.com-20130219141645-3c1avqxnk23gcn1g
2013-02-19 15:16:45 +01:00
Fabien Meghazi b68f13d892 [FIX] BufferedDataset ids should not be passed to on_changes
bzr revid: fme@openerp.com-20130218180732-ivdxvenc2flgl32p
2013-02-18 19:07:32 +01:00
Xavier Morel 6fe0dd8032 [FIX] prevent dragging click target images of m2o and datetime fields
can get slightly disturbing when missing a click and slightly dragging the image instead, possibly to the input (pasting its URL)

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

bzr revid: xmo@openerp.com-20130218104529-i0i8700v2mwxje4b
2013-02-18 11:45:29 +01:00
Fabien Meghazi e1726fa1ee [FIX] FormView#do_load_state() do not call @do_show() properly
bzr revid: fme@openerp.com-20130205170556-w9xxre6lmqny33xc
2013-02-05 18:05:56 +01:00
Fabien Meghazi c9f2a86be5 [FIX] Calendar popup form view_id is not honored. Default form view is used instead.
Added instance.web.ViewManager#get_view_id(view_type)
Fetch the title of the popup from the parent if it's a ViewManagerAction,
    otherwise, use the current's view title.

bzr revid: fme@openerp.com-20130204124348-p79drjm72vt2j2ty
2013-02-04 13:43:48 +01:00
Xavier Morel e761ab7454 [FIX] domain returned by onchange
The "new" form engine performs a bunch of conversions on the form arch
from json to xml to text to json again (or something), thus the
``node`` attribute on form fields might be json but it's got no more
relation to the form's own arch (and the fields defined therein).

Meanwhile the domains processing for onchange recursively traversed
the *form*'s arch trying to find a node matching the key it had to set
its @domain to what it was given. It long predates the "new" form
engine, and since it alters the *original* arch not a copy the "new"
form engine broke it. And since that's untested, it's been broken for
a bunch of months (probably).

Fix by looking up the field according to the domain key (in
form.fields), and setting the domain in the node of the field, rather
than the node of the form's arch.

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

bzr revid: xmo@openerp.com-20130124144018-0g3sl2nej2aj6syp
2013-01-24 15:40:18 +01:00
Fabien Meghazi 5f7a8b66e0 [FIX] Empty binary fields does not hide filename placeholder
lp bug: https://launchpad.net/bugs/1054111 fixed

bzr revid: fme@openerp.com-20130107161807-fvzdgayqhf8hx92q
2013-01-07 17:18:07 +01:00
niv-openerp 5cafcf5570 [FIX] potential problem with empty save message in form view in some cases and access rights
lp bug: https://launchpad.net/bugs/1093781 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130102102835-a1uibudlohbsz9x8
2013-01-02 11:28:35 +01:00
Thibault Delavallée 6de27635d6 [IMP] cleditor: stop using custom font-size, font-family.
bzr revid: tde@openerp.com-20121226161307-nuud3r2omhi1sf3v
2012-12-26 17:13:07 +01:00
Christophe Matthieu fdfe8e04f8 [MERGE] fix view_form: m2m_tags: Overwrite onSetInputData to reset suggestions if input is empty for the last selection don't stay persistent.
bzr revid: chm@openerp.com-20121221140236-sbnsh0m6laqnxegd
2012-12-21 15:02:36 +01:00
vta vta@openerp.com 948d566403 [MERGE] Improvement on m2obutton widget
bzr revid: vta@openerp.com-20121220150716-a8w94s74x9ejqch5
2012-12-20 16:07:16 +01:00
Fabien Meghazi 31592e96aa [ADD] Added an openerpBounce jquery plugin
bzr revid: fme@openerp.com-20121219151217-bxp1p04gmbccckys
2012-12-19 16:12:17 +01:00
Fabien Meghazi d234a24de0 [MERGE] trunk
bzr revid: fme@openerp.com-20121219150025-h9h1956xey3tok57
2012-12-19 16:00:25 +01:00
Fabien Meghazi 677b783dc5 [FIX] Special case fields type 'id'. Always set readonly.
lp bug: https://launchpad.net/bugs/1091344 fixed

bzr revid: fme@openerp.com-20121218173115-d5zgbfdkj3kivq26
2012-12-18 18:31:15 +01:00
vta vta@openerp.com 1d62e37925 [FIX] FieldStatus.get_selection() many2one domain issues
bzr revid: vta@openerp.com-20121218134740-ipmem2fo4mtgeaks
2012-12-18 14:47:40 +01:00
niv-openerp 8a3fe9f0c2 [FIX] make the field text resize correctly
lp bug: https://launchpad.net/bugs/1089447 fixed

bzr revid: nicolas.vanhoren@openerp.com-20121213150653-slmic4hcc2m95xy0
2012-12-13 16:06:53 +01:00
niv-openerp 906ceba948 [IMP] lot of small improvements to better detect when a view has finished loading
bzr revid: nicolas.vanhoren@openerp.com-20121213140914-8d1u01h17r2x4fpu
2012-12-13 15:09:14 +01:00
Christophe Matthieu 389b865d54 [MERGE] catch and display error when there are an error in an attachment. Add title with creator and date for attachments on the sidebar.
bzr revid: chm@openerp.com-20121211152455-nrx74yqs0ui1hsmr
2012-12-11 16:24:55 +01:00
Xavier Morel bc8e74d8b0 [FIX] focusing of form fields, implementation of focusing for tag m2m
jQuery's *focus* method must *not* be used: it triggers the blur and
focus events in the wrong order (and potentially more than once),
breaking the focus handling of the o2m editable list and making it
essentially unusable.

The DOM method behaves correctly, triggers the blur first and the
focus second in a different runloop frame (thus it's possible to bind
on blur, wait a set time and execute the actual blurring iif no focus
event has been seen within the form).

bzr revid: xmo@openerp.com-20121211145652-y63a0ny0gmoiozhn
2012-12-11 15:56:52 +01:00
Christophe Matthieu f817cd3f38 [IMP] web: move controler download_attachment into mail. change render into _t
bzr revid: chm@openerp.com-20121211144551-9uryi1z1sxe9daxv
2012-12-11 15:45:51 +01:00
Christophe Matthieu b83c11d61a [FIX] web_form: FieldMany2ManyBinaryMultiFiles get_value work with default_value and unloaded value
bzr revid: chm@openerp.com-20121211105045-0kugxoijdxh8sm7s
2012-12-11 11:50:45 +01:00
Fabien Meghazi c124fc3281 [FIX] Roundtrips binary field value if not bin size
lp bug: https://launchpad.net/bugs/1082616 fixed

bzr revid: fme@openerp.com-20121211103357-csqirmhxehmszyu4
2012-12-11 11:33:57 +01:00
Xavier Morel e616a9aa14 [FIX] would be better if we could write to textareas as well
bzr revid: xmo@openerp.com-20121211101901-1lqbca199wbce2ld
2012-12-11 11:19:01 +01:00
Xavier Morel d165b1715c [FIX] broken writing to selection field from web UI
lp bug: https://launchpad.net/bugs/1088764 fixed

bzr revid: xmo@openerp.com-20121211090610-qoh1zazzpp00sx5l
2012-12-11 10:06:10 +01:00
Xavier Morel 45f3ee1909 [FIX] xmo@openerp.com-20121210143808-wt4jmi4x0pg85xb8 issue: don't store value from non-existent input
bzr revid: xmo@openerp.com-20121210154411-vrju22fwq7gsjblm
2012-12-10 16:44:11 +01:00
Xavier Morel d1b9cfce37 [FIX] form widgets failing to return correct value on programmatic save
Editable list was losing value when switching to other row from edited
cell (edit, tab-to-next-fiend then change record worked).

When changing row (by clicking on an other row or pressing up/down),
the list view simply request saving the current form and — once that
is done — switches the form to the new row.

The issue is in what happens *during* form-saving: for most text-based
fields (e.g. CharField-like) the field returns its internal
value. Said internal value was only synchronized when the internal
form control (input or textarea) fired the ``change`` event... and the
change event only fires *after blurring* (leaving) the current
field. So the form saving (and thus the retrieval of field values)
occured before the field could sync its internal value with the one
entered by the user.

Added a bunch of commit_value override to perform this synchronization
right before the field's value is requested.

Also removed an extraneous trailing comma in an array, and removed 2
useless temp storage (unused variables beyond their assignment).

bzr revid: xmo@openerp.com-20121210143808-wt4jmi4x0pg85xb8
2012-12-10 15:38:08 +01:00
Xavier Morel 70f8f99b35 [FIX] prevent propagation of [UP] and [DOWN] keydown events in form m2o
these events are used by the autocompletion widget internally, if they
bubble upwards they also get handled by the list view which interprets
them as going up/down the list.

Prevent the latter by suppressing bubbling of these events.

bzr revid: xmo@openerp.com-20121210112203-3mry0pvecri0pv9o
2012-12-10 12:22:03 +01:00
Christophe Matthieu 27bc9ed5fa [IMP] mail: fix display message attachment error
bzr revid: chm@openerp.com-20121207091134-9v0ce6o3dp8gca7l
2012-12-07 10:11:34 +01:00
Christophe Matthieu 94c9801ac7 [MERGE] from trunk
bzr revid: chm@openerp.com-20121207081026-3edlt0698csc6gk8
2012-12-07 09:10:26 +01:00
Christophe Matthieu 98e87a51ae [IMP] attachment: sidebar rendering of tipsy in html mode, and error fix
bzr revid: chm@openerp.com-20121207080946-f7zr853hvdhdrsk0
2012-12-07 09:09:46 +01:00
Fabien Meghazi 3dbed3b90d [MERGE] Removed fields_view_get from web controller. Replaced by instance.web.fields_view_get
bzr revid: fme@openerp.com-20121206161749-0cx1xychzqe96fb2
2012-12-06 17:17:49 +01:00
Xavier Morel 7ac99cbeaf [FIX] form selection field: don't interpret value 0 as false in the template when the code doesn't do so
bzr revid: xmo@openerp.com-20121206135114-nuwc3wdc6zatbl3d
2012-12-06 14:51:14 +01:00
Tejas Tank 3464960518 Merged Latest.
bzr revid: tta@openerp.com-20121206111229-q2fn8zfp71ntclxv
2012-12-06 16:12:29 +05:00
Fabien Meghazi 4c66504f78 [STEP BACK] One step back in the cleaning process. Maybe for v8.
bzr revid: fme@openerp.com-20121205160536-p9dm7zdxq2qb9mqs
2012-12-05 17:05:36 +01:00
Fabien Meghazi 96d3fbe37b [IMP] No need to strip whitespaces afterall
bzr revid: fme@openerp.com-20121205110039-o4kt0mpbq2b5zbd2
2012-12-05 12:00:39 +01:00
Fabien Meghazi 8d9367a873 [FIX] Do not insert Elements instead of HTMLElements in the dom
bzr revid: fme@openerp.com-20121205105933-y3glnms4dnk7k2uz
2012-12-05 11:59:33 +01:00
Fabien Meghazi 595ba7a799 [FIX] Remove fvg steps from form view
bzr revid: fme@openerp.com-20121205093522-4mws91b2i14f7j1z
2012-12-05 10:35:22 +01:00
Christophe Matthieu b04a134a16 [FIX] view_form: m2m_tags, when a user quick create a tag, select a tags in the list or blurred and click on the arrow, the last selection is persistant. Overwrite onSetInputData to reset suggestions if input is empty.
bzr revid: chm@openerp.com-20121204102304-iru8pcjlca8zh5fj
2012-12-04 11:23:04 +01:00
Christophe Simonis 0892aa7c49 [IMP] improve css for monetary fields
bzr revid: chs@openerp.com-20121203184214-wdunfzy4u2z99fk5
2012-12-03 19:42:14 +01:00
vta vta@openerp.com 44f27eca8e [IMP] Improve M2OButton.
bzr revid: vta@openerp.com-20121203151525-j464860k1ueqztp6
2012-12-03 16:15:25 +01:00
Christophe Matthieu 989c308694 [FIX] web form : catch and display error when there are an error in an attachment upload
bzr revid: chm@openerp.com-20121130090347-xfwiwnktagbvyoqz
2012-11-30 10:03:47 +01:00
Xavier Morel 0b0cfff063 [MERGE] missing translation marks, courtesy of Csaba TOTH
lp bug: https://launchpad.net/bugs/1084306 fixed

bzr revid: xmo@openerp.com-20121129140109-bwx1njhyqfenc2d3
2012-11-29 15:01:09 +01:00
niv-openerp 184593003b [FIX] race condition problem with m2m
bzr revid: nicolas.vanhoren@openerp.com-20121129134051-5hiw9z5hi99fxtve
2012-11-29 14:40:51 +01:00
tsabi 76ca47d4fd [MERGE] trunk
bzr revid: csaba.toth@i3rendszerhaz.hu-20121129114132-gfe3sn1p5t0mzofm
2012-11-29 12:41:32 +01:00
Xavier Morel e00cb36f41 [MERGE] from trunk
bzr revid: xmo@openerp.com-20121129091038-0fexjx8o12drjbga
2012-11-29 10:10:38 +01:00
tsabi e2435d4f00 fixed a typo that maked javascript error
bzr revid: tsabi-20121129011822-fv9v0l72231y0093
2012-11-29 02:18:22 +01:00
tsabi 92e87f7e6f Mark strings to be translated.
Maybe some missed, but most of them marked.

bzr revid: tsabi-20121129002200-20tppzvh0ap5tfwe
2012-11-29 01:22:00 +01:00
Xavier Morel 2b75593168 [FIX] don't display password fields in set_default dialogs
lp bug: https://launchpad.net/bugs/1015092 fixed

bzr revid: xmo@openerp.com-20121128135013-xzanbxv6qoqo28kh
2012-11-28 14:50:13 +01:00