Commit Graph

3396 Commits

Author SHA1 Message Date
Fabien Meghazi 04ee649855 [ADD] When application starts, warn the user if it's timezone does not match it's browser's timezone
bzr revid: fme@openerp.com-20121122151125-a8fybzmqyw8uvr7h
2012-11-22 16:11:25 +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
niv-openerp c2bcf50d98 [IMP] Made the logo a simple link.
bzr revid: nicolas.vanhoren@openerp.com-20121122130220-z9h2kezgxnh02vlj
2012-11-22 14:02:20 +01:00
Xavier Morel 9105afcd68 [FIX] put evaluation context in evaluation context
so you can access the context while you're accessing the context

bzr revid: xmo@openerp.com-20121122124130-t8j6sggtnl4f0b8r
2012-11-22 13:41:30 +01:00
Vidhin Mehta (OpenERP) 74bb901030 [FIX]List view try to display show hidden element's child element.
lp bug: https://launchpad.net/bugs/1081083 fixed

bzr revid: vme@tinyerp.com-20121122120008-dz5wy1jbh93tdken
2012-11-22 17:30:08 +05:30
Divyesh Makwana (Open ERP) 78704b2f70 [Merge] Merge the Sales/CRM section.
bzr revid: mdi@tinyerp.com-20121122111645-9uzv85jn1qfe8d2s
2012-11-22 16:46:45 +05:30
Xavier Morel 04398646fb [CHG] temporarily disable eval-domain-and-context interception
bzr revid: xmo@openerp.com-20121122111608-hckowmw71b8any9f
2012-11-22 12:16:08 +01:00
niv-openerp 7e13ccb265 [FIX] typo in doc
bzr revid: nicolas.vanhoren@openerp.com-20121122100953-2z1vbvqqmn1jsz88
2012-11-22 11:09:53 +01:00
niv-openerp 425ea97a39 [IMP] Corrected small stuff in Dialog widget and added documentation.
bzr revid: nicolas.vanhoren@openerp.com-20121122100738-8hi8lcsnh5yf7xwt
2012-11-22 11:07:38 +01:00
niv-openerp e1d6502f7c [FIX] problem with sidebar_eval_context
bzr revid: nicolas.vanhoren@openerp.com-20121122094347-q8evcsk7np2ja8xb
2012-11-22 10:43:47 +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 9f9a2996f6 [FIX] __debug__ key wrongly set in QWeb default_dict
bzr revid: fme@openerp.com-20121121144320-mzgynprxpq1jlxey
2012-11-21 15:43:20 +01:00
Fabien Meghazi 4b007e1521 [FIX] Searchview proposition facet does not format date[time]s client side
bzr revid: fme@openerp.com-20121121135657-nh3t6usqkvl9vh03
2012-11-21 14:56:57 +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
Hiral Patel (OpenERP) 0b995d57d1 [IMP] Remove debug mode after logout
bzr revid: hip@tinyerp.com-20121121064527-pojijc3a7ksxnroy
2012-11-21 12:15:27 +05:30
Denis Ledoux dle@openerp.com bdca6b0925 [FIX]Fix bug lp:1080997. 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
bzr revid: dle@openerp.com-20121120161634-xc0qxyz6x1ccrl2o
2012-11-20 17:16:34 +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
Fabien Meghazi c9de04d796 [FIX] Fixed wrong width computing in Dialog. Removed extraneous call to init_dialog(). Remove Dialog#$buttons dom manipulation hack.
bzr revid: fme@openerp.com-20121120141807-pvdryoib39eqh1u7
2012-11-20 15:18:07 +01:00
Jiten (OpenERP) beeaf61b21 [MERGE] Merged trunk.
bzr revid: jra@tinyerp.com-20121120123652-ezrem00a8t8xbi7c
2012-11-20 18:06:52 +05:30
niv-openerp ade1a5df87 [IMP] allows to specify a specific eval domain in /web/action/load
bzr revid: nicolas.vanhoren@openerp.com-20121120110748-5idnflvmxx0jibwe
2012-11-20 12:07:48 +01:00
Fabien Meghazi 6c07b70017 [FIX] Fixed Export dialog buttons. Cleanup openerp.web.Dialog
lp bug: https://launchpad.net/bugs/1078640 fixed

bzr revid: fme@openerp.com-20121120110104-ge6k5n22cul5jrax
2012-11-20 12:01:04 +01:00
Xavier Morel 5a9f78302f [MERGE] from trunk
when creating the instance, set instance.session.uid to 42 so the evaluator has something to chew on when it tries to create the evaluation context

bzr revid: xmo@openerp.com-20121120101733-b0ire11bbuywfi8u
2012-11-20 11:17:33 +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
Fabien Meghazi ceae7544ca [FIX] Fixed Export dialog buttons. Cleanup openerp.web.Dialog
bzr revid: fme@openerp.com-20121120095042-6f4tyiap3t6cxk9e
2012-11-20 10:50:42 +01:00
Tejas Tank 86408a7348 Merged Latest.
bzr revid: tta@openerp.com-20121120092907-cqr0uuusv86uaiwx
2012-11-20 14:59:07 +05:30
Hiral Patel (OpenERP) 14879e0802 [IMP] Set the height of text field
bzr revid: hip@tinyerp.com-20121120065118-c9hc7n2u2txgn4w2
2012-11-20 12:21:18 +05:30
Olivier Dony a670e79f8e [MERGE] Sync with trunk
bzr revid: odo@openerp.com-20121119170116-x6fusrmmmkquvgfh
2012-11-19 18:01:16 +01:00
Olivier Dony 1a8acb73b3 [IMP] monodb bootstrap: support @db query string param to force monodb mode
Allows a.o. to let auth_signup URLs works even if multiple DBs
exist

bzr revid: odo@openerp.com-20121119170042-iprc0u159qpf8ll2
2012-11-19 18:00:42 +01:00
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
Fabien Meghazi 09a2f24398 [FIX] push_state() broken after closing a wizard
bzr revid: fme@openerp.com-20121119111130-7xubnqvvhp3q1jds
2012-11-19 12:11:30 +01:00
Raphael Collet 4dcede9044 [IMP] web: add 'widget: self' in rendering environment of openerp.web.Client
bzr revid: rco@openerp.com-20121119100734-dtprbdm9bypid8bk
2012-11-19 11:07:34 +01:00
Xavier Morel e0ec6783e5 [IMP] listview already checks non-empty ids array for deletion, so check not useful
bzr revid: xmo@openerp.com-20121119084533-6qnktzmh19kfwtoo
2012-11-19 09:45:33 +01:00
Xavier Morel 28cbfd22b7 [FIX] editable listview: do not attempt to delete falsy ids (from the dataset)
During the creation of a new record (in an editable list), the
prospective new record has a ``false`` id. In a non-o2m, the row under
creation can be selected (checkbox) and deleted (More > Delete),
leading to the request to ``DELETE false`` being sent to the ORM…
which said ORM does not wish to entertain.

Before actually performing the delete request (more precisely
forwarding said request to the listview itself), remove all false-ish
ids from the array.

Also, don't send a request to delete nothing.

bzr revid: xmo@openerp.com-20121119084203-0vz4v9myfizxz88u
2012-11-19 09:42:03 +01:00
Vishmita e97d0843c3 [IMP]Minor Change
bzr revid: vja@tinyerp.com-20121119071142-8z4tyac5t8614dde
2012-11-19 12:41:42 +05:30
Vishmita df369bd8c0 [Merge]Merge lp:~openerp-dev/openerp-web/trunk-improve-change-password-dialog
bzr revid: vja@tinyerp.com-20121119070614-yri2ytotkzx47mj9
2012-11-19 12:36:14 +05:30
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
Vishmita 5e948944a0 [IMP]Improve code for change password dialog
bzr revid: vja@tinyerp.com-20121116110838-zqwt9mkx5prooqzq
2012-11-16 16:38:38 +05:30
Xavier Morel e1e4c48c18 [REM] test runner feature which probably caused more trouble than it caught
avoid catching exception in executed callback, it just hinders debugging by generated completely bonkers traces

bzr revid: xmo@openerp.com-20121116105554-hu45anetrj1a8tl6
2012-11-16 11:55:54 +01:00
Xavier Morel 796e80ec2d [FIX] deferred.pipe -> deferred.then
bzr revid: xmo@openerp.com-20121116101417-mkcjrdtocl6w7408
2012-11-16 11:14:17 +01:00
Xavier Morel 0d85c24ae3 [MERGE] from trunk, fix/adapt some tests
bzr revid: xmo@openerp.com-20121116100840-yyr9b4oru3zdftld
2012-11-16 11:08:40 +01:00
niv-openerp 76cce62c99 [IMP] Added feature in the rpc() method to be able to perform a call without triggering the loading messages.
bzr revid: nicolas.vanhoren@openerp.com-20121116094200-q4cby6jofcrk87hd
2012-11-16 10:42:00 +01:00
Xavier Morel 09037e8a42 [REM] failing test code
committed by mistake

bzr revid: xmo@openerp.com-20121116073738-9f43bm0q6eojns3v
2012-11-16 08:37:38 +01:00
Xavier Morel d632471f64 [IMP] web test runner: pass execute's arguments to the function to avoid duplication
bzr revid: xmo@openerp.com-20121116072906-0di2j83p602a2l9i
2012-11-16 08:29:06 +01:00
Xavier Morel a9645151b6 [IMP] setup & teardown of test runner
simplify code and make setup & teardown processes more reliable

add testing.Stack tools which stacks promise-returning functions
around the actual promise-returning function to execute (the test case
itself).

testing.Stack returns an object with 3 methods, ``push([setup][,
teardown])``, ``unshift([setup][, teardown])`` and ``execute(fn,
*args)``. ``push`` and ``unshift`` create a new stack with the
provided setup and teardown added respectively at the top and bottom
of the stack.

``execute`` will walk the stack from bottom to top executing ``setup``
handlers (and waiting on their result), if all setup handlers execute
without failure the ``fn`` callback gets executed (and waited on) then
*all* ``teardown`` handlers are executed from top to bottom:

 |  setup
 |    setup
 |      setup
 |        setup
 |          fn
 |        teardown
 |      teardown
 |    teardown
 V  teardown

If a ``setup`` handler fails (the promise is rejected), teardowns will
start executing *from the previous level* (so the ``teardown``
matching the failed ``setup`` will *not* be run), but all
``teardowns`` below that will be run regardless, even if one fails the
next one will still be executed.

The stack will either ultimately return a promise rejection using the
*first* rejection it got (a rejection may be cascading, so the
rejection of a setup may also lead to or be linked to a teardown being
rejected later), or will return the resolution from ``fn``.

If ``execute`` is passed further arguments, those arguments will in
turn be forwarded to ``fn`` as well as all ``setup`` and ``teardown``
handlers.

bzr revid: xmo@openerp.com-20121116071712-zuld957icellezum
2012-11-16 08:17:12 +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
Christophe Simonis 801927cb14 [FIX] make root menu links works
bzr revid: chs@openerp.com-20121115171201-76y7ul1jhjyi2e78
2012-11-15 18:12:01 +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
Fabien Meghazi 8a3d2c4744 [FIX] For act window target new, always use a new dialog object
Buttons footer hack in dialogs makes reusability of dialog impossible

bzr revid: fme@openerp.com-20121115151046-0r8xz85racjta7p3
2012-11-15 16:10:46 +01:00
Christophe Matthieu 48fc5bb6ef [MERGE] from trunk
bzr revid: chm@openerp.com-20121115140009-s4uj0saecwtq19nx
2012-11-15 15:00:09 +01:00
Christophe Matthieu 6807a2e07c [IMP] web form: FieldOne2ManyBinaryMultiFiles no delete file on set value
bzr revid: chm@openerp.com-20121115135904-17rg7j5g8xu4rjvn
2012-11-15 14:59:04 +01:00
Fabien Meghazi f842d8dba1 [FIX] When action returns other value than an action, close current dialog if any
bzr revid: fme@openerp.com-20121115134207-n0q1vae1wuga5jc7
2012-11-15 14:42:07 +01:00
Christophe Matthieu 64e46a1e0e [IMP] web form: one2many_binary accept all values one2any and default values
bzr revid: chm@openerp.com-20121115122834-5vo00jagzvysti1a
2012-11-15 13:28:34 +01:00
Christophe Simonis 6227e4b5c0 [FIX] CrashManager do not have destroy() method
bzr revid: chs@openerp.com-20121115120331-ltujwzobh19muygl
2012-11-15 13:03:31 +01:00
Christophe Matthieu 739775253f [FIX] web: FieldOne2ManyBinaryMultiFiles fix the loading for default ids files list
bzr revid: chm@openerp.com-20121115092149-lsbxb9ougxwkkktn
2012-11-15 10:21:49 +01:00
Xavier Morel 8e85f4e0bd [IMP] timeout discipline
* Global timeout significantly increased to correctly handle e.g. db creation and teardown
* Per-test timeout brought back down to 2s

bzr revid: xmo@openerp.com-20121115091501-ys8opo0ccr3dq29h
2012-11-15 10:15:01 +01:00
Antony Lesuisse 7629191431 [MERGE] manual merge parts of chs owp
bzr revid: al@openerp.com-20121114233743-u9499fa3eugw94zi
2012-11-15 00:37:43 +01:00
Christophe Simonis eb5a5bf838 [IMP] add method session.url() to generate correct url
bzr revid: chs@openerp.com-20121114174150-9nhj50vftt4lrf0k
2012-11-14 18:41:50 +01:00
Fabien Meghazi 4fb15efb59 [FIX] IE does not accept custom button@type attribute
Added one more step in views serialization historic hell

bzr revid: fme@openerp.com-20121114164413-wrnxlbuh9zj924yk
2012-11-14 17:44:13 +01:00
niv-openerp 303b6108a4 [FIX] problem with datepicker
bzr revid: nicolas.vanhoren@openerp.com-20121114151923-p8okppnjpyxsahql
2012-11-14 16:19:23 +01:00
Antony Lesuisse 36e4ed47b7 [FIX] login params
bzr revid: al@openerp.com-20121114151714-i0hsz4lyfmps307x
2012-11-14 16:17:14 +01:00
Denis Ledoux dle@openerp.com 8dcaac7f54 [FIX]Wrong date for datepicker, due to using self.value instead of self.get('value')
lp bug: https://launchpad.net/bugs/1075504 fixed

bzr revid: dle@openerp.com-20121114144345-boqe04siijwsuqor
2012-11-14 15:43:45 +01:00
Xavier Morel 67115184f8 [FIX] references to renamed/removed methods in event handler bindings
bzr revid: xmo@openerp.com-20121114130600-2qf8egm0r9bwno1n
2012-11-14 14:06:00 +01:00
niv-openerp de39dccefb [FIX] problem with invalid on*|do* refactoring
bzr revid: nicolas.vanhoren@openerp.com-20121114125922-cirvs06k133dwako
2012-11-14 13:59:22 +01:00
Fabien Meghazi 3f0f60faa9 [FIX] Even IE9 only exposes console object when the debug window is opened
bzr revid: fme@openerp.com-20121114125715-wgr0wxb91dvccuag
2012-11-14 13:57:15 +01:00
Vo Minh Thu 19011a6d76 [MERGE] added a duplicate operation to the database managment screen.
bzr revid: vmt@openerp.com-20121114121250-9l0qmlvriwzp7zr9
2012-11-14 13:12:50 +01:00
Xavier Morel 01630d6800 [FIX] focus/blur in fieldm2mtags in case of tabbing in/out
bzr revid: xmo@openerp.com-20121114114508-g97xdgq4a4fhpmjz
2012-11-14 12:45:08 +01:00
Vo Minh Thu 1ba3ae959f [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121114113528-t6ed04bv1d5p7h31
2012-11-14 12:35:28 +01:00
Christophe Simonis e1f5dfc388 [FIX] jsonp wasn't working on some browse due to security restriction that do not store the third parties cookies.
bzr revid: chs@openerp.com-20121114113335-nag3ljcwwx0yfdnu
2012-11-14 12:33:35 +01:00
Olivier Dony 524c3d500d [FIX] chrome.js: leftover typo after renaming of URL `action_id` param, new `action` param was being ignored
bzr revid: odo@openerp.com-20121114111923-x2qs3zdfzmezt5z8
2012-11-14 12:19:23 +01:00
niv-openerp 729eb0ff4f [FIX] problem with list editable in o2m
bzr revid: nicolas.vanhoren@openerp.com-20121114103156-tzbz8sm4x54jgjvm
2012-11-14 11:31:56 +01:00
Fabien Meghazi 9114457d71 [REV] Revision 3408 revid:al@openerp.com-20121114005029-41tkuo2g93vbnz60 does not pass runbot tests
bzr revid: fme@openerp.com-20121114090731-hrw2eh6b1and8soc
2012-11-14 10:07:31 +01:00
Antony Lesuisse d639ae250c [MERGE] menu possible to reload only a submenu
bzr revid: al@openerp.com-20121114005029-41tkuo2g93vbnz60
2012-11-14 01:50:29 +01:00
Christophe Matthieu 0cf93f912b [IMP] mail & web menu: code review for reload menu
bzr revid: chm@openerp.com-20121113160248-1p2003uc9f5nnxnm
2012-11-13 17:02:48 +01:00
Xavier Morel 7d18be69a5 [FIX] form shortcuts being somewhat active in listview leading to strange behaviors
added a predicate and a decorator to View, so that views can easily
check if they are the active view and only execute relevant actions
when they are.

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

bzr revid: xmo@openerp.com-20121113153610-7yogikfyg4rxwsjp
2012-11-13 16:36:10 +01:00
Christophe Matthieu fa8f27307a [MERGE] from trunk
bzr revid: chm@openerp.com-20121113152842-qwe8eibf2pb5dsrv
2012-11-13 16:28:42 +01:00
Christophe Matthieu 82cba0604f [IMP] web menu: add a context value for reload one submenus of a parent id menu. If no default_menu, load all menus
bzr revid: chm@openerp.com-20121113143220-zhwo06j7pl8rt2wi
2012-11-13 15:32:20 +01:00
Christophe Simonis 71fdd4fdb3 [FIX] do_load_state: highlight right menu when loading action using xmlid
bzr revid: chs@openerp.com-20121113140002-gq330rwod0c7qf5m
2012-11-13 15:00:02 +01:00
Xavier Morel 9fcde05168 [FIX] clicking on checkbox (boolean field) of list view should correctly trigger whatever the row action is
replaced @disabled checkboxes for boolean fields by @readonly + alpha
(50%), as disabled input do not generate *any* event. Not default
action (of course) but not e.g. a click either, whether delegated or
bound directly on the element, there's no way at all to see if e.g. a
user has clicked on a disabled checkbox or radio.

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

bzr revid: xmo@openerp.com-20121113131806-7fhog1f96gxnjr67
2012-11-13 14:18:06 +01:00
Xavier Morel a379a62d88 [REM] useless events binding
edition is triggered by row_clicked on the internal List

not even sure there's any td left which isn't an oe_list_field_cell

bzr revid: xmo@openerp.com-20121113124227-173ykkiwgv862oly
2012-11-13 13:42:27 +01:00
Xavier Morel f908f44759 [FIX] remove min-width on number form fields when inside an editable list view
otherwise it refused to fit in small cells

also remove !important specifications which are just a bloody fucking
pain every single time, they're just a shit hack over doing things
correctly in the first place, to hell with these things.

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

bzr revid: xmo@openerp.com-20121113123047-jspflyhfb8gei24r
2012-11-13 13:30:47 +01:00
Xavier Morel 22edf6193d [FIX] listview display when action button deletes the corresponding record
if a record has disappeared between activating a button and refreshing
the record, remove it from the list view

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

bzr revid: xmo@openerp.com-20121113104407-n924vinluqfdtesf
2012-11-13 11:44:07 +01:00
Fabien Meghazi 40734fc4c4 [FIX] Third part of bug#1077858 : Error in list view when displaying non saved o2m item with binary field
lp bug: https://launchpad.net/bugs/1077858 fixed

bzr revid: fme@openerp.com-20121112172541-n312hzvsqcr78jeh
2012-11-12 18:25:41 +01:00
Fabien Meghazi cd4c3c61ff [FIX] Listview does not handle base64 value for binary fields
lp bug: https://launchpad.net/bugs/1077858 fixed

bzr revid: fme@openerp.com-20121112171128-a1aoq2q4fma6fpxc
2012-11-12 18:11:28 +01:00
Xavier Morel 9e11c51843 [MERGE] from trunk
bzr revid: xmo@openerp.com-20121112164136-sfyfxdcjx3ps086b
2012-11-12 17:41:36 +01:00
Xavier Morel 657c46172c [IMP] add class to default custom filters so they can be styled specifically
bzr revid: xmo@openerp.com-20121112162430-uvu43f01egyp0piw
2012-11-12 17:24:30 +01:00
Fabien Meghazi a0c3b3664a [FIX] Fixes first part of bug#1077858
lp bug: https://launchpad.net/bugs/1077858 fixed

bzr revid: fme@openerp.com-20121112155332-eshqtkk5grn22tqm
2012-11-12 16:53:32 +01:00
Thibault Delavallée 4e688bb8c7 [MERGE] Merged a Mail update
This web revision adds a resize key in the attachment controler to receive resized image when accessing some attachments. This is used for the preview in Chatter, to avoid pre-visualizing the whole images.

bzr revid: tde@openerp.com-20121112154956-w4iyroc3hfmxn9l0
2012-11-12 16:49:56 +01:00
Xavier Morel 7e6c3be96f [FIX] check default filter in drawer
bzr revid: xmo@openerp.com-20121112154815-e9a8dn5gwqyi7s80
2012-11-12 16:48:15 +01:00
Xavier Morel 06bcfd27fc [FIX] editable listview @on_write handling in case of @colors
the onwrite handler created an "empty" record with no field value
whatsoever, which'd blow up in the py evaluator. As during creation
(edition of a record where all fields are empty) create a record where
all fields are set to ``false`` so rendering works correctly, and wait
for content refresh to get correct data.

Also added a test for @on_write

bzr revid: xmo@openerp.com-20121112150526-vrr66ms95qbuoped
2012-11-12 16:05:26 +01:00
ggh-openerp 0452790388 [IMP] Improve Change Password dailog
bzr revid: ggh@tinyerp.com-20121112130756-jtj6u56pcvxorxcr
2012-11-12 18:37:56 +05:30
Thibault Delavallée 4ca42f9968 [MERGE] Sync with trunk.
bzr revid: tde@openerp.com-20121112104931-jvcn0853jx08do7n
2012-11-12 11:49:31 +01:00
Harry (OpenERP) d8034fa4f4 [MERGE]
bzr revid: hmo@tinyerp.com-20121112092513-ngonx9bv68uw2gb5
2012-11-12 14:55:13 +05:30
Antony Lesuisse 1b80c5bd52 [IMP] monodb helper
bzr revid: al@openerp.com-20121111163243-bhj3jzhuk99sklwo
2012-11-11 17:32:43 +01:00
Antony Lesuisse 521f52caff [FIX] dataset class
bzr revid: al@openerp.com-20121110222822-ey7vzl7excr70j9k
2012-11-10 23:28:22 +01:00
Antony Lesuisse 49c0ed6467 [IMP] restore mono db preload, introduce bootstrap manifest key
bzr revid: al@openerp.com-20121110211343-g1r6qzka8iqk1fky
2012-11-10 22:13:43 +01:00
Antony Lesuisse 2e810433c9 remove WidgetMixin
bzr revid: al@openerp.com-20121110194654-0q10uajsy6nmzzd6
2012-11-10 20:46:54 +01:00
Antony Lesuisse 27c872cef3 remove CallbackEnabled
The on_/do_ binding still happens in Widget.init, but as we now use ES5 bind()
it doesnt clutter stack traces anymore. However the fate of this automatic binding
feature remains uncertain.

bzr revid: al@openerp.com-20121110193440-78mpwamqx7iwq2ux
2012-11-10 20:34:40 +01:00
Antony Lesuisse 3fe1945347 use ES5 bind() for better stack traces
bzr revid: al@openerp.com-20121110190014-ead1981ez6up6ri1
2012-11-10 20:00:14 +01:00
niv-openerp fac7bea3a2 [FIX] problems with the progressbar widget in form view
bzr revid: nicolas.vanhoren@openerp.com-20121109134958-kp44r6gix54uouhu
2012-11-09 14:49:58 +01:00
Christophe Matthieu df96456fc5 [FIX] view_form: fixing blockUI attribute in multi file uploader
bzr revid: chm@openerp.com-20121109102102-o5t86g1jz82175jk
2012-11-09 11:21:02 +01:00
Xavier Morel d3b22ccb36 [FIX] incorrect handling of empty values in m2m listview display
bzr revid: xmo@openerp.com-20121109083513-mjpzd01hhuylll4j
2012-11-09 09:35:13 +01:00
Christophe Simonis a824da4be3 [FIX] do_load_state: propagate _push_me flag
bzr revid: chs@openerp.com-20121108175910-qd2xho4srhhbjs5q
2012-11-08 18:59:10 +01:00
vta vta@openerp.com bbb5192346 [FIX] Many2OneButton, don't subscribe to write_complete event.
bzr revid: vta@openerp.com-20121108154215-4b3sk7nh41xfrl62
2012-11-08 16:42:15 +01:00
Xavier Morel 788e8edf81 [FIX] don't resize & reposition invisible or readonly fields in editable listview
the datetime field doesn't setup its internal widget if the field is readonly, so accessing it blows up

bzr revid: xmo@openerp.com-20121108153544-o2uvpfeoofu2tx12
2012-11-08 16:35:44 +01:00
vta vta@openerp.com e0094e20de [FIX] Issue when triggering 'write_completed' on AbstractFormPopup, argument not passed.
bzr revid: vta@openerp.com-20121108152231-cdtdxa1q9rl4eyre
2012-11-08 16:22:31 +01:00
Xavier Morel 3a5421309b [FIX] breakage of m2m (tag) fields in editable (o2m) listviews
e.g. quotation form view, "Order Lines" table, add a tax (or more) to
a line, save, then try to edit the line.

Issue: the listview mostly uses a single-level structure for its
display, each record is a trivial map of {name: value}. For the M2O
the expected value can be complex-ish (a name_get which holds all the
interesting stuff) but not so for the m2m.

An m2m value is just a list of ids (Array<Integer>), the list view
would overwrite that with the concatenated name_get strings to get
something kind-of displayable. Except editable serializes the record
it has and passes that as-is to the embedded formview. The
corresponding widget (FieldMany2ManyTags) most definitely does not
expect a big string to be shoved up its fat ass.

So use a different but just as disgusting hack: instead of *replacing*
the ids array with the string, add the string to the record after very
slightly munging the original name, that way the form is happy because
it gets the value it expects, and the Many2Many column can override
_format to use the value of the munged/fake column as "stuff it passes
to whatever is in charge of formatting fields for display" when the
original field is asked for.

NOTE: redundant work is done as every line will do its own name_get,
      potentially on the same ids over and over again. Having a
      short-lived backend cache may allow not name_get-ing ids we've
      already fetched during the same table display...

bzr revid: xmo@openerp.com-20121108145705-uphw76z4q4krcpnl
2012-11-08 15:57:05 +01:00
Fabien Meghazi c6d4dcd2ab [FIX] Fix form view bounce effect
bzr revid: fme@openerp.com-20121108151810-c5p3rsha9x8kg6lv
2012-11-08 16:18:10 +01:00
vta vta@openerp.com 2576cd9d5c [MERGE] Latest trunk.
bzr revid: vta@openerp.com-20121108132049-7ape10oz1gvz4vi8
2012-11-08 14:20:49 +01:00
Fabien Meghazi 0b4b1cf52d [MERGE] trunk
bzr revid: fme@openerp.com-20121108111222-cetz6q6s47iwxnm2
bzr revid: fme@openerp.com-20121108111448-2rzx9moaqloc5lpc
2012-11-08 12:14:48 +01:00
Fabien Meghazi e2766b6690 [FIX] Restore dialog buttons
bzr revid: fme@openerp.com-20121108104248-fqv98fv45n35q8qf
2012-11-08 11:42:48 +01:00
Xavier Morel 7c3d2a37b5 [IMP] support set_dimensions on date and datetime form widgets
bzr revid: xmo@openerp.com-20121108103631-dlgw5q58agq8ndb0
2012-11-08 11:36:31 +01:00
Fabien Meghazi 225b0c2c2d [MERGE] trunk
bzr revid: fme@openerp.com-20121108091548-enm1aftirkzngld1
2012-11-08 10:15:48 +01:00
Xavier Morel a423c32454 [IMP] m2m_tags code
bzr revid: xmo@openerp.com-20121107161955-bc7bxmmbdkmr34ix
2012-11-07 17:19:55 +01:00
niv-openerp 6f79b279bf [IMP] removed "blacklist" feature in form view that was implemented due to inability to call get_value() on a o2m during its modification. With the recent commit_value() implementation this feature is now useless.
bzr revid: nicolas.vanhoren@openerp.com-20121108103856-uou2leyng8bhx5ba
2012-11-08 11:38:56 +01:00
niv-openerp 86f9f5db35 merge trunk
bzr revid: nicolas.vanhoren@openerp.com-20121108100145-i1ey2f6g07nri18a
2012-11-08 11:01:45 +01:00
Antony Lesuisse a963bd019a [MERGE] m2o button
bzr revid: al@openerp.com-20121107151954-aqqtn4w6hpd39kmi
2012-11-07 16:19:54 +01:00
Xavier Morel 1b8a0e66ee [REV] nicolas.vanhoren@openerp.com-20120712074237-xugmbw19wjjoes9l
eagerly loaded treeviews, making heavily loaded charts of accounts
completely unusable

bzr revid: xmo@openerp.com-20121107143740-31i16933dfg4t6xk
2012-11-07 15:37:40 +01:00
Fabien Meghazi 57638a3657 [FIX] Fixed regression due to previous trunk merge
bzr revid: fme@openerp.com-20121107132839-wwf3svdnmrfbj97u
2012-11-07 14:28:39 +01:00
Xavier Morel bfad5ad032 [ADD] custom dimensioning of a bunch of form widget for better editable listview compat/styling
bzr revid: xmo@openerp.com-20121107132152-9s6s1n4fn4bwjdm2
2012-11-07 14:21:52 +01:00
Xavier Morel 7959c832cd [FIX] lost call to setup_default_query during merge
bzr revid: xmo@openerp.com-20121107120955-xgnnm2pfvsqch8kn
2012-11-07 13:09:55 +01:00
Tejas Tank 47e028f6c9 Merge with latest.
bzr revid: tta@openerp.com-20121107115008-rkt9fpy2r6lgirkk
2012-11-07 17:20:08 +05:30
Tejas Tank 1a9f93fc85 [fix] on model form tags issue fixed..
bzr revid: tta@openerp.com-20121107113256-ac6znf9m5ibzoovl
2012-11-07 17:02:56 +05:30
Xavier Morel 36dad4cef9 [MERGE] from trunk
bzr revid: xmo@openerp.com-20121107112516-64hqps4jjgmrs3a4
2012-11-07 12:25:16 +01:00
Fabien Meghazi 8b18d999bd [FIX] BinaryImage field triggers render_value() two times on file change
bzr revid: fme@openerp.com-20121107111247-ge1oi0oxbr7k5dhf
2012-11-07 12:12:47 +01:00
vta vta@openerp.com 064003797e [FIX] Issue with py.eval if no options passed.
bzr revid: vta@openerp.com-20121107104933-a60t27t1hjyu368f
2012-11-07 11:49:33 +01:00
vta vta@openerp.com 4b0d99d6c8 [IMP] Now the Many2OneButton accepts an option (label) containing a dict to set the string displayed in the button ({'create':String, 'edit':String}). If no label, the string is empty.
bzr revid: vta@openerp.com-20121107103426-u6dfd1vcfu8fwap3
2012-11-07 11:34:26 +01:00
Fabien Meghazi f06b78dbf6 [MERGE] trunk
bzr revid: fme@openerp.com-20121107091047-uehws6qa3ouaa4fs
2012-11-07 10:10:47 +01:00
vta vta@openerp.com 83405dba45 [IMP] Make the popup accessible.
bzr revid: vta@openerp.com-20121107081738-kortakwtjj7s9k80
2012-11-07 09:17:38 +01:00
Tejas Tank d22ade963d Merged with latest.
bzr revid: tta@openerp.com-20121107072349-legqnnhnczvl0ny2
2012-11-07 12:53:49 +05:30
Tejas Tank e4effd6585 [IMP] Remove traceback with a warning/constraint message for float field.
bzr revid: tta@openerp.com-20121107063810-ulei1bq8aw1xctyl
2012-11-07 12:08:10 +05:30
Fabien Meghazi 86d9b7be0c [IMP] Binary Image: warn user when selected image could not be displayed. Also use placeholder
bzr revid: fme@openerp.com-20121106172036-d9jkebo9mj45thft
2012-11-06 18:20:36 +01:00
Xavier Morel 1c721d43c5 [FIX] disable advanced search apply button in search view when there are no propositions
avoids locking up the browser by entering an infinite loop when unshifting ors on domains

bzr revid: xmo@openerp.com-20121106161715-7vc55kps8gi8h3lb
2012-11-06 17:17:15 +01:00
niv-openerp 2a9779045f [FIX] rare problem in m2mtags, when the form view is destroyed just after a reload
lp bug: https://launchpad.net/bugs/1075543 fixed

bzr revid: nicolas.vanhoren@openerp.com-20121106162525-c835kdpjpj66e714
2012-11-06 17:25:25 +01:00
Thibault Delavallée 025167e4fc [MERGE] Introducing the Many2Many Email Widget, based on Many2Many Tags. This widget designed for many2many fields on partners checks that partners added in the widget have an email address defined; if not, a popup is opened to enter an email.
The widget is defined in the mail addons module, but this web-side revision adds a trigger when destroying a popup, because this event is used in the widget.

bzr revid: tde@openerp.com-20121106161603-gybjhsjavwe5bgd2
2012-11-06 17:16:03 +01:00
vta vta@openerp.com c275363921 [FIX] Text conflicts.
bzr revid: vta@openerp.com-20121106154141-03nnje0th7cjtlqf
2012-11-06 16:41:41 +01:00
niv-openerp 660443885c [FIX] Problem with list view and some references
lp bug: https://launchpad.net/bugs/1071491 fixed

bzr revid: nicolas.vanhoren@openerp.com-20121106153929-8705y9r3u2b27i8u
2012-11-06 16:39:29 +01:00
Xavier Morel e3e54b0e7a [IMP] port searchview to helpers
bzr revid: xmo@openerp.com-20121106152148-33ctafxz5iy53nl1
2012-11-06 16:21:48 +01:00
Xavier Morel a501903c23 [IMP] convert searchview to DOM events hash
bzr revid: xmo@openerp.com-20121106150449-1sxybk8jml7xa2ji
2012-11-06 16:04:49 +01:00
Thibault Delavallée a006b078ed [REVIEW] trigger closing -> trigger closed, to match the code guidelines.
bzr revid: tde@openerp.com-20121106145940-cji6varovqtgneiz
2012-11-06 15:59:40 +01:00
Thibault Delavallée 018a91ddc0 [MERGE] Sync with web/trunk.
bzr revid: tde@openerp.com-20121106145336-vm8vxzd9baui7iih
2012-11-06 15:53:36 +01:00
Xavier Morel 2ebaa6f666 [FIX] searchview drawer closing when clicking advanced proposition
handler for "global click filtered by whether click target is outside
of search view" executed after prop deletion handler has executed =>
the whole proposition has already been removed from the document and
thus isn't a descendent of the searchview anymore => test matches and
drawer closes.

Altered handler to stop propagation so does not reach global handler.

bzr revid: xmo@openerp.com-20121106144736-l0pde7phf3nake4t
2012-11-06 15:47:36 +01:00
Xavier Morel 4f52103aa0 [FIX] double html-escaping of group titles in grouped lists (eg analysis)
bzr revid: xmo@openerp.com-20121106140519-0qnq934rr44l6kgt
2012-11-06 15:05:19 +01:00
Fabien Meghazi d221165c59 [FIX] Better fix than Revision: 3338 revid:fme@openerp.com-20121106094244-oybwglprd1v3g5xn
bzr revid: fme@openerp.com-20121106134145-uzijdxde2otoxdfy
2012-11-06 14:41:45 +01:00
Christophe Matthieu af2c38f4c9 [IMP] web: trigger closing for popup
bzr revid: chm@openerp.com-20121106125206-icm2s8fvb13m40w9
2012-11-06 13:52:06 +01:00
niv-openerp fd2bb078fb Fixed problem with editable list
bzr revid: nicolas.vanhoren@openerp.com-20121106103828-uw6xv1ed7wueii71
2012-11-06 11:38:28 +01:00