Commit Graph

1283 Commits

Author SHA1 Message Date
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
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 Simonis 0892aa7c49 [IMP] improve css for monetary fields
bzr revid: chs@openerp.com-20121203184214-wdunfzy4u2z99fk5
2012-12-03 19:42:14 +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
Xavier Morel ddcce477d7 [FIX] eq/neq of arrays in compute_domain
bzr revid: xmo@openerp.com-20121128134142-eywfsl3bv56pvoso
2012-11-28 14:41:42 +01:00
Christophe Matthieu b41ee4833e [MERGE] from trunk-first-10clicks-accounting-tta; Selection Placeholder. No traceback py but a warning/constraint message for wrong value insert for float and int.
bzr revid: chm@openerp.com-20121128083349-qfnl5rbaprq7hlh6
2012-11-28 09:33:49 +01:00
Tejas Tank 81a2e23dd6 [FIX] clean the code.
bzr revid: tta@openerp.com-20121128053540-01z3yiooq83foyew
2012-11-28 11:05:40 +05:30
Xavier Morel 908c986ce8 [FIX] onchange for client-side evaluation: use regular method calls
bzr revid: xmo@openerp.com-20121127133435-ss3g97sm43mrtbla
2012-11-27 14:34:35 +01:00
Fabien Meghazi d0195e30e8 [FIX] Many2Many kanban binds "change:effective_readonly" too late.
The problem occured when opening a form view containing a m2m_kanban
from a kanban view using an Edit button.

Eg: when opening an existing project from project kanban view using
    the dropdown item "Project Settings", no "Add" button appears in
    the project Team tab.

bzr revid: fme@openerp.com-20121126102533-ak96lhsxbfx8io7n
2012-11-26 11:25:33 +01:00
Xavier Morel 709f2506ff [REM] server-side eval_domain_and_context
bzr revid: xmo@openerp.com-20121123113932-siz0u2vp2u7z6wk2
2012-11-23 12:39:32 +01:00
niv-openerp 9b59a88a5c [IMP] Put pager in SelectCreatePopup.
bzr revid: nicolas.vanhoren@openerp.com-20121122133555-a5cf1m5sbgs2kv1i
2012-11-22 14:35:55 +01:00
Fabien Meghazi c0bb84a3fe [IMP] Move 'Set Defaults' from sidebar's 'More' menu to advanced debug box
bzr revid: fme@openerp.com-20121122090754-d8hl9c7jtobgstxj
2012-11-22 10:07:54 +01:00
Fabien Meghazi 74a5e92d46 [FIX] Binary fields, limit upload size to 25Mo (only works for browsers supporting FileAPI)
bzr revid: fme@openerp.com-20121121104329-5aa88lxqogn206l2
2012-11-21 11:43:29 +01:00
Fabien Meghazi a0c3ba7a1c [MERGE] many2many_tags: correctly checks it's falsy value
bzr revid: fme@openerp.com-20121121100812-gzn25f8g50cr5t3t
2012-11-21 11:08:12 +01:00
Denis Ledoux dle@openerp.com 08e0522ad6 [FIX]Add option 'disable_editable_mode' which disable editable widget when setted to true. This is because search popups should not be editable. 'search more...' was not clickable in fields with many2many_tags widget and default tree view with flag editable setted
lp bug: https://launchpad.net/bugs/1080997 fixed

bzr revid: dle@openerp.com-20121120153958-jopkpxmz38b78phj
2012-11-20 16:39:58 +01:00
niv-openerp 999c0b2cab [FIX] Modified behavior when we click on an action in the 'More' menu.
Since revision 1517, when using the sidebar from a form view, it merged all the fields of the form view in the context of the action.
It was modified to avoid that context pollution, now it only uses those fields to evaluate the context of that action. So it allows
specifying contexts like "{'invoice_id': invoice_id}", but invoice_id will not be propagated any more to the new action context if not
explicitely specified.

bzr revid: nicolas.vanhoren@openerp.com-20121120100620-ig4e02uctysk7oj8
2012-11-20 11:06:20 +01:00
Tejas Tank 86408a7348 Merged Latest.
bzr revid: tta@openerp.com-20121120092907-cqr0uuusv86uaiwx
2012-11-20 14:59:07 +05:30
Fabien Meghazi 9180d9702b [FIX] Don't leave button@type=submit in IE
bzr revid: fme@openerp.com-20121119143719-1uu4s71jyudfi5u3
2012-11-19 15:37:19 +01:00
Christophe Matthieu c7e8142cae [FIX] many2many_tags: the widget accept the required attribute
bzr revid: chm@openerp.com-20121119122413-plp6klbytyjuhwqt
2012-11-19 13:24:13 +01:00
Xavier Morel 86842fe9c8 [FIX] correctly handle case of deleting-an-o2m-line-being-edited
move special case in o2m listview to main editable and expand to
correctly fit edition cases, not just work in case of creation

issue: if a row being edited is deleted in an o2m, the form will be
blurred and try cancelling/saving the edition and reloading the row,
but this will only happen *after* the record/row/whatever has been
"deleted" and (amongst other things) removed from the buffered o2m
cache, leading to a tentative read on the server side (usually with a
local id which doesn't even make sense) and thus an error.

Intercept the deletion signal to cancel the edition immediately and
only let the deletion through after the edition has successfully been
canceled.

bzr revid: xmo@openerp.com-20121116164416-8kr39t6jtqy2s3jc
2012-11-16 17:44:16 +01:00
Christophe Matthieu ea92f73acc [MERGE] from trunk-mail-uploader-chm
bzr revid: chm@openerp.com-20121116151506-z0qg8cgf069kdato
2012-11-16 16:15:06 +01:00
niv-openerp 40c4ed7f54 [FIX] problem in editable list o2m when hitting the enter button rapidly
bzr revid: nicolas.vanhoren@openerp.com-20121116151248-il59eiekk758suco
2012-11-16 16:12:48 +01:00
Christophe Matthieu 6debec3f10 [IMP] web form: one2many_binary became many2many_binary
bzr revid: chm@openerp.com-20121116112517-yqc9w37iz5yg2xf0
2012-11-16 12:25:17 +01:00
Fabien Meghazi 8c2764115f [FIX?] Probably fix something... ? See previous revision.
bzr revid: fme@openerp.com-20121115182331-0vz3beb6x2od9xhs
2012-11-15 19:23:31 +01:00
Fabien Meghazi cace9f7887 [IMP] Centralized 'openerp' class on top level elements. Also add openerp_ie class for MSIE
bzr revid: fme@openerp.com-20121115164132-i6a0u8zk3knm1zkv
2012-11-15 17:41:32 +01:00