Commit Graph
1745 Commits
Author SHA1 Message Date
Xavier Morel 213d0dd7ae [IMP] make embedded client crash manager configurable
bzr revid: xmo@openerp.com-20120705102724-orwhrpyzrmxisbud
2012-07-05 12:27:24 +02:00
Xavier Morel ad689f5cf2 [ADD] crash manager to embedded client, otherwise RPC errors get silently supressed
bzr revid: xmo@openerp.com-20120705100001-48ufwqtt1t1gnol2
2012-07-05 12:00:01 +02:00
Xavier Morel 1376020559 [FIX] make datepicker and timepicker translatable
bzr revid: xmo@openerp.com-20120629152811-9015tj66xzfw94o2
2012-06-29 17:28:11 +02:00
Xavier Morel 548be06651 [FIX] correctly pass along options in ProxyDataSet#write calls
bzr revid: xmo@openerp.com-20120629130703-7hgylg6uulp9pkka
2012-06-29 15:07:03 +02:00
Xavier Morel f1fbb9018b [FIX] missing comma in CSS leading to incorrect selectors
bzr revid: xmo@openerp.com-20120629130319-zn9sc9xkaz01n0yv
2012-06-29 15:03:19 +02:00
Xavier Morel 85884f6485 [FIX] Add new operator case to advanced search: field is set or is not set
lp bug: https://launchpad.net/bugs/1013528 fixed

bzr revid: xmo@openerp.com-20120629121805-mosmy1t366sozv1e
2012-06-29 14:18:05 +02:00
Bhumi Thakkar (Open ERP) be07ba003f [FIX] Implement is set and is not set for char,inetger,float,date,datetime widget.
bzr revid: bth@tinyerp.com-20120629111236-27j1mj5krha0rkkm
2012-06-29 16:42:36 +05:30
Xavier Morel e979565c68 [FIX] action-type button from a list row being edited in an o2m
Issue 575065

Flow for a button[@type=action] requires going through multiple RPC
calls to execute action. Due to reloading behavior of o2m-list on
actions (saves containing form then executes action then reloads row),
internal form view gets removed while e.g. server action is being
fetched (in Views#do_execute_action).

Problem: there is guard on ``rpc`` call which drops response to
stopped widget (Widget#rpc) => action/load call never returns
successfully because linked form is dead.

Solution: instead of calling View#do_execute_action via the formview,
call it via the listview (do_execute_action was already partially
overridden to change the ``on_close`` callback, override it further).

=> widget still lives, and rpc requests execute correctly leading to
all actions being correctly called (mostly).

bzr revid: xmo@openerp.com-20120629105325-vmwpyi7w3pc33sg9
2012-06-29 12:53:25 +02:00
Xavier Morel 9029f24d87 [FIX] action buttons activated in editable o2m lists during or after row edition
bzr revid: xmo@openerp.com-20120625072046-29tg3vnnpkhj8fe9
2012-06-25 09:20:46 +02:00
Xavier Morel 942f72b578 [MERGE] behavioral fixes and changes to editable list o2ms
* Correctly propagate current validation status of row being edited
* Automatically save row being edited upon leaving it
* Replace "Save" button (floppy) by "Cancel" (cross)
* Allow easier overriding of Groups and List sub-widgets

bzr revid: xmo@openerp.com-20120625070901-4cs6v24exjk5z2fa
2012-06-25 09:09:01 +02:00
Xavier Morel a227e1e43c [CHG] reintroduce a button at the end of the line, but use the cross as a cancel
bzr revid: xmo@openerp.com-20120625065812-6n8lxb0zimzvq1ee
2012-06-25 08:58:12 +02:00
msh-openerp 563bf4d709 [FIX]Fixed the issue of coma missing in base.css, which do not loads required class for the textarea.
bzr revid: msh@tinyerp.com-20120625043126-gfvq0so0v2257wbw
2012-06-25 10:01:26 +05:30
Xavier Morel d64f983fce [FIX] correctly reload an o2m list *after* triggering an action from a row being edited
bzr revid: xmo@openerp.com-20120622150117-w04eibub93ve81mo
2012-06-22 17:01:17 +02:00
Xavier Morel 9e134c9afa [IMP] move ListView.List#reload_record to ListView
bzr revid: xmo@openerp.com-20120622135015-dsvjblv1rd4oezcp
2012-06-22 15:50:15 +02:00
cpa-openerp 45fe4e10b2 [FIX] Fixed options not reach at write method of DataSet.
bzr revid: cpa@tinyerp.com-20120622113153-xdwtfb3lzya65u4v
2012-06-22 17:01:53 +05:30
Xavier Morel 5182068b43 [FIX] ensure containing form is saved when triggering an action from an editable o2m list
After opening a record with a list o2m, editing said list o2m and
saving a row, clicking the action button would lose all data
explicitly changed: the o2m would just call the action without saving
the form's current state, so the corresponding server method would
only be able to use data previously saved.

Fixed by overriding do_button_action, and only calling the _super()
method after the parent form has announced it is saved (either because
nothing was changed or because it did indeed save itself).

bzr revid: xmo@openerp.com-20120622085432-mh3977uygua5bypn
2012-06-22 10:54:32 +02:00
Xavier Morel ace69b6921 [MERGE] move filtering of non-searchable fields to prune the fields list itself
if only the *display* list is filtered, the advanced search engine may
still attempt to *select* a non-searchable field (if it's the first
one) leading to broken/nonsensical behavior. 

Non-searchable fields should be removed from the advanced search's
ability to find them altogether.

bzr revid: xmo@openerp.com-20120621101103-k842i8h1rxlr4n9k
2012-06-21 12:11:03 +02:00
Xavier Morel 326d6f419a [FIX] incorrect clearing of default values on selection fields in search view
and simplification of the same on basic fields

bzr revid: xmo@openerp.com-20120621101009-vg0rnwnitxfhaill
2012-06-21 12:10:09 +02:00
Xavier Morel ff65067f1d [FIX] actually clear basic textual fields in search view when [Clear] button used, don't just reset to default value
lp bug: https://launchpad.net/bugs/1015612 fixed

bzr revid: xmo@openerp.com-20120621095203-oruw1ghlxu2gc7qh
2012-06-21 11:52:03 +02:00
Xavier Morel ed0a94f0d7 [IMP] focus management in date field
bzr revid: xmo@openerp.com-20120620113402-lacdu8fvq9bwrcl6
2012-06-20 13:34:02 +02:00
Xavier Morel 6a4adf2a3b [FIX] blur/focus handling in most (if not all) form widgets
bzr revid: xmo@openerp.com-20120620111527-2j23k13zc6td2deo
2012-06-20 13:15:27 +02:00
msh-openerp 416ece536d [FIX]Refixed the issue of datetime picker translation, used Date.CultureInfo terms of translation also used firstDayOfWeek etc from the CultureInfo.
bzr revid: msh@tinyerp.com-20120620053701-295eqx0ztqv2re01
2012-06-20 11:07:01 +05:30
Xavier Morel f5e53a1e09 [FIX] stupid groupby bug
bzr revid: xmo@openerp.com-20120619133618-sxgs18sn48x902hv
2012-06-19 15:36:18 +02:00
Bhumi Thakkar (Open ERP) e2a8445c48 [IMP] Code Optimization.
bzr revid: bth@tinyerp.com-20120619132024-aactz01q29vtcscv
2012-06-19 18:50:24 +05:30
Bhumi Thakkar (Open ERP) b3be8c4d6b [FIX] if value is blank then return false.
bzr revid: bth@tinyerp.com-20120619131155-839l1zzyrfnfettn
2012-06-19 18:41:55 +05:30
Xavier Morel 19d5cb01c7 [FIX] error caused by autosave-on-blur when vaidating a row with [Return]
bzr revid: xmo@openerp.com-20120619110350-64sb4uy2t1eydiou
2012-06-19 13:03:50 +02:00
Xavier Morel 125eead80a [FIX] focus issues with m2o contextual menu (and popup operations)
bzr revid: xmo@openerp.com-20120619093651-7rfe1pp7ucuj0ajh
2012-06-19 11:36:51 +02:00
Xavier Morel 0516533c16 [FIX] handling of focus on m2o fields (in editable list row)
* Throw out focusin/focusout: the m2o widget's completion list is
  created at the page top (body) so the editable listview can't
  generically handle arbitrary widgets via mere focusin/focusout.

* Move responsibility of focus/blur events to the form view and its
  widgets.

* Events could not just be named ``focus`` and ``blur`` due to usage
  of jquery's event system: jquery will automatically call a method of
  the event's name if it exists on the object, which conflicts with
  .web.form.Field#focus and leads to an infinite loop (as Field#focus
  focuses the field's root element, which triggers the focus event,
  which calls the focus method,...) => form-* and widget-*, can be
  switched back in trunk

* m2o mess kind-of complex, basically:

  - the core input and the menu button behave as blur/focus triggers

  - when the autocompletion list is clicked, it will temporarily
    remove the focus from the input (blurring it), and put it back
    later... on a timer. Issue is the timer, we don't want to rely on
    having a bigger timer (as later revisions of the library may
    change our timings and it's iffy to rely on timers conserving
    order perfectly); on the other hand we know the focus *will* come
    back to the input eventually. So we can just avoid propagating
    blur iif the blur is the consequence of having clicked on the
    completion list.

  - roughly the same thing happens when clicking on $drop_down (after
    fixing the handling of its final focus to be consistent, as
    $drop_down would not re-focus the input if it was *closing* the
    completion list)

  - pretty sure the menu thing does *not work at all*, but I don't
    have the courage of fixing it before committing this part.

Date/datetime widget remains to be handled, basically the core focus
handling is the same as in e.g. a charfield *but* needs to handle (and
ignore) loss of focus from clicking inside the picker
widget. Expecting the level of suck to reach unknown heights.

bzr revid: xmo@openerp.com-20120619072518-lsrhzij5asxt2aea
2012-06-19 09:25:18 +02:00
Mohammed Shekha 4ac973e63f [FIX]Fixed the issue of datetime picker which does not translated even though if someone is in another language.
bzr revid: msh@openerp.com-20120618150421-f9eoyw55hlswfw72
2012-06-18 20:34:21 +05:30
Xavier Morel 70b0af1375 [IMP] jQuery exposes focusin and focusout, use that instead of its manual implementation
bzr revid: xmo@openerp.com-20120618073431-gmeo349oskbld53t
2012-06-18 09:34:31 +02:00
Xavier Morel 3e2cab2aad [FIX] handling of [Return] key to save records being edited in MSIE
* DOM events sequence screwed up, requiring an explicit blur on the
  current target to try and ensure the corresponding form widget would
  register its own change event
* Requirement to stop the default behavior of keypress and keydown on
  [Return] as they would somehow trigger the contextual menu of m2o
  fields on the row, at the wrong place, when in a char field (I don't
  even...)
* Delaying of the actual saving of the form (via `setTimeout`) to try
  and ensure the blur/change event has had the time to propagate
  correctly (and be handled) before we actually save

bzr revid: xmo@openerp.com-20120615055440-yn00uv4q8y29nboq
2012-06-15 07:54:40 +02:00
Xavier Morel 055edd7790 [ADD] automatic save of o2m rows being created/edited when clicking/focusing outside
bzr revid: xmo@openerp.com-20120614123731-x2owyp4nc1yi1ocj
2012-06-14 14:37:31 +02:00
Xavier Morel acfff868cb [IMP] return deferred from ListView#render_row_as_form indicating *when* the row has been rendered as a form
bzr revid: xmo@openerp.com-20120614123130-1z1vvt62rnr21bpz
2012-06-14 14:31:30 +02:00
Xavier Morel 7516028068 [IMP] allow overloading a listview's List and Groups types
bzr revid: xmo@openerp.com-20120614123056-cu3q34m4ysjxzqtt
2012-06-14 14:30:56 +02:00
Xavier Morel 05238cd948 [FIX] don't require an extended class to have a method yet to allow it to be overloaded
bzr revid: xmo@openerp.com-20120614123024-ngby1srdwojv5rmb
2012-06-14 14:30:24 +02:00
Xavier Morel 83eef22856 [FIX] don't break the handling of record index 0 in editable list views: index 0 means something different than index = null
bzr revid: xmo@openerp.com-20120614085009-xuo1ifu2vnlcic72
2012-06-14 10:50:09 +02:00
Xavier Morel 29584df420 [IMP] hide [disk drive] button in o2m editable lists
bzr revid: xmo@openerp.com-20120614084420-0ky3d41kk2r8zlp8
2012-06-14 10:44:20 +02:00
Fabien Meghazi 5179f7293c [REV] Revert revid:fme@openerp.com-20120611151704-u2krxz14wvmvqura which broke field@widget=image
bzr revid: fme@openerp.com-20120614084009-3ovgmo8azp7vg9n2
2012-06-14 10:40:09 +02:00
Xavier Morel 49f6ab9853 [FIX] do not break dataset index (at the wrong moment) when clicking on [Create] row
dataset.index was previously set to ``null`` in handler of [Create]
button (to fullfill contract with form view that dataset.index should
be ``null`` to indicate the creation of a new record with no id).

Issue: after setting the index to ``null``, the list view calls
``render_row_as_form`` which starts out trying to save a row being
edited (case: clicking of the [Create] button after having selected a
row for edition or after having written in a new record e.g. [Create]
-> type -> [Create] type -> ...). This tentative to save the existing
form would be performed in the context of a ``null`` dataset.index,
which the form view doesn't (and shouldn't, index should be that of
record *being edited*) expect.

-> first save in whatever dataset state is the current one, and *right
before* creating the new form (after having saved and/or discarded the
previous one) we have the id of the new record to edit (or ``null``),
find the index for *that* and set ``dataset.index`` to that (or
``null``) so the new form view can be created and opened in the right
context.

bzr revid: xmo@openerp.com-20120613153842-pd6xitjs8n003ogs
2012-06-13 17:38:42 +02:00
Xavier Morel 9f9bbcff33 [FIX] in ensure_saved, discard non-dirty editable rows
if the editable row's form isn't dirty, either nothing has been
entered in a new row or an existing row (being edited) has not been
altered, so can just discard the row (and reload it from cache if it's
an edition).

bzr revid: xmo@openerp.com-20120613153633-ms7i8t9lvdarxqi3
2012-06-13 17:36:33 +02:00
Xavier Morel 533f17231c [FIX] if a form is not dirty, always consider the corresponding o2m[list] to be valid
the user has not modified the editable line after opening it (whether to create a new record or to edit an existing one), so shouldn't be invalid

bzr revid: xmo@openerp.com-20120613153555-fq0moy1q464l92yj
2012-06-13 17:35:55 +02:00
Xavier Morel e475bc7a2a [IMP] don;t needlessly wrap values into deferreds in pipes
bzr revid: xmo@openerp.com-20120613153412-c2byqrc66jcn0e97
2012-06-13 17:34:12 +02:00
Xavier Morel 5ec4ecf85d [FIX] O2M validation: correctly proxy validation from/to edited row of the list view, if any
bzr revid: xmo@openerp.com-20120613100819-sw93kst4dpwhnu1p
2012-06-13 12:08:19 +02:00
Xavier Morel 632a4dee0c [FIX] correctly forward arguments in _super() call of editable listview's form widgets override
bzr revid: xmo@openerp.com-20120613094037-3iny9dsdhmp7qspi
2012-06-13 11:40:37 +02:00
msh-openerp 63717f8651 [FIX]Refix the issue, used filter in current chain process instead of each.
bzr revid: msh@tinyerp.com-20120613071306-9o50h0xxcg6dheda
2012-06-13 12:43:06 +05:30
Xavier Morel 0240ab1682 [CHG] try saving any row under edition when starting an (other) row edition
editable lists should not lose data unless explicitly asked to forget about it by user action

bzr revid: xmo@openerp.com-20120612150820-z97jxme1vcu3x3jd
2012-06-12 17:08:20 +02:00
Xavier Morel eb83b58e32 [IMP] Deferred usage in editable listview
bzr revid: xmo@openerp.com-20120612150708-0z5dsclcrtj29st3
2012-06-12 17:07:08 +02:00
Olivier Dony 068a4e7e5a [MERGE] Missing tab title made multi-tab use of OpenERP quite difficult - now fixed.
bzr revid: odo@openerp.com-20120612141943-ukcwg62lsm3auy0d
2012-06-12 16:19:43 +02:00
Olivier Dony 08dede9737 [FIX] base.xml: missing base URL for <img src> and <form action>, for embeddded mode
bzr revid: odo@openerp.com-20120612075257-jrsq6iyoko9d9zx4
2012-06-12 09:52:57 +02:00
Fabien Meghazi 15149e26fc [FIX] In form view, <image> tag is not a binary image but an <img>
bzr revid: fme@openerp.com-20120611151704-u2krxz14wvmvqura
2012-06-11 17:17:04 +02:00