Commit Graph
43954 Commits
Author SHA1 Message Date
Olivier Dony a0dd1a8acc [MERGE] OPW 574360: yaml_import: properly handle x2m default values
bzr revid: odo@openerp.com-20120625161954-pl0ma1kilq599yxe
2012-06-25 18:19:54 +02:00
Olivier Dony e3f997c44d [FIX] yaml_import: support False as a o2m default value
bzr revid: odo@openerp.com-20120625144013-r6j6zabaap6739gf
2012-06-25 16:40:13 +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
Launchpad Translations on behalf of openerp bd909a7ce6 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120622051328-pcxd9js5f92wdgmr
bzr revid: launchpad_translations_on_behalf_of_openerp-20120623052419-1961hw7lylxyxmis
bzr revid: launchpad_translations_on_behalf_of_openerp-20120624055418-uwu6rzb83nei1970
bzr revid: launchpad_translations_on_behalf_of_openerp-20120625053327-yvs063aomd7l98tu
2012-06-25 05:33:27 +00:00
Olivier Dony b4be8b80b2 [MERGE] mail: avoid obscure failure when processing batches of emails with attachments
This issue was caused by the way browse_records are cached,
  in combination with the deletion of messages just after sending
  them. When processing a second message, the attachment.datas
  function fields gets computed for all messages that are being
  browsed, including the first message that was already deleted,
  causing an exception. The value of the function field had 
  already been computed for the first message, but had been
  discarded by the message.refresh() call.
  Hopefully this kind of issue will disappear once we implement
  the new ORM API.

bzr revid: odo@openerp.com-20120622152536-42b2s28lvdv3odyr
2012-06-22 17:25:36 +02:00
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
Olivier Dony 95e00367f5 [FIX] mail: avoid obscure failure when processing batches of emails with attachments
This issue was caused by the way browse_records are cached,
in combination with the deletion of messages just after sending
them. When processing a second message, the attachment.datas
function fields gets computed for all messages that are being
browsed, including the first message that was already deleted,
causing an exception. The value of the function field had 
already been computed for the first message, but had been
discarded by the message.refresh() call.
Hopefully this kind of issue will disappear once we implement
the new ORM API.

bzr revid: odo@openerp.com-20120622093123-wpk8ht454w7p2c1w
2012-06-22 11:31:23 +02:00
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
Launchpad Translations on behalf of openerp 838b035f5a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120622051402-aeivuh5dgoe8idc5
2012-06-22 05:14:02 +00:00
Christophe Simonis 136589aafd [FIX] base_vat: correct Switzerland VAT check
bzr revid: chs@openerp.com-20120621143152-1h8xvyoj5rw899ww
2012-06-21 16:31:52 +02:00
Olivier Dony 2a31beee8b [MERGE] orm: make sure all *Model classes define _auto,_register,_transient
This is required to avoid strange mro() pitfalls
where an AbstractModel is inherited by a Model,
and the _auto=False of AbstractModel ends up
first in the mro() because Model does not explicitly
define it, and the BaseModel default _auto is farther
in the mro().

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

bzr revid: odo@openerp.com-20120621110825-ry8e5tktvwv3h4tm
2012-06-21 13:08:25 +02:00
Olivier Dony a320a72cf8 [FIX] yaml_import: fix incorrect m2m default handling from previous commit
bzr revid: odo@openerp.com-20120621110532-fsi7hz8fllnlab07
2012-06-21 13:05:32 +02:00
Xavier Morel 1851e1735e [MERGE] visual effects fix on diagram nodes in firefox
bzr revid: xmo@openerp.com-20120621105658-2bgozggy6ouz9fca
2012-06-21 12:56:58 +02:00
Xavier Morel a4004f0bd5 [IMP] simplify localconnector's exception converter: use Python's facilities correctly
bzr revid: xmo@openerp.com-20120621103342-nea9yw135dl5lsta
2012-06-21 12:33:42 +02:00
Xavier Morel 7ee3c3f43d [MERGE] ensure exception information is correctly converted to string before being concatenated with the faultCode string (sic) of emulated XMLRPC faults
bzr revid: xmo@openerp.com-20120621102940-2lh6ho6v6d64h8hr
2012-06-21 12:29:40 +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
Olivier Dony 2611c22efe [FIX] orm: make sure all *Model classes define _auto,_register,_transient
This is required to avoid strange mro() pitfalls
where an AbstractModel is inherited by a Model,
and the _auto=False of AbstractModel ends up
first in the mro() because Model does not explicitly
define it, and the BaseModel default _auto is farther
in the mro().

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

bzr revid: odo@openerp.com-20120621100900-xejo9yhgx36kyh03
2012-06-21 12:09:00 +02:00
Xavier Morel 70dd03a357 [MERGE] vertically flipped x axis labels in MSIE
bzr revid: xmo@openerp.com-20120621100242-r6jpdtetmxmmaybn
2012-06-21 12:02:42 +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
Launchpad Translations on behalf of openerp 4d1eb70d75 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120621054841-fihpiv7cez9k1q2e
bzr revid: launchpad_translations_on_behalf_of_openerp-20120616051737-i1bgarydwo8sskwi
bzr revid: launchpad_translations_on_behalf_of_openerp-20120617045509-64kdpflg3qmi3ez5
bzr revid: launchpad_translations_on_behalf_of_openerp-20120619051316-yxaq2zd3lm3porh1
bzr revid: launchpad_translations_on_behalf_of_openerp-20120620051154-51v02ueneup3v9et
bzr revid: launchpad_translations_on_behalf_of_openerp-20120621054848-82s941upwtfrpo96
2012-06-21 05:48:48 +00:00
Launchpad Translations on behalf of openerp 8013bd76d0 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120621054752-zau83g809c5n2h6f
2012-06-21 05:47:52 +00:00
Olivier Dony 86ec4e2636 [MERGE] l10n_ch: bugfixes from Camptocamp, courtesy of Yannick Vaucher
bzr revid: odo@openerp.com-20120620173200-3hxn1syumst7jdkz
2012-06-20 19:32:00 +02:00
Olivier Dony 3ca63b0b85 [MERGE] OPW 575500: correct importing invoices in bank statements in multi-currency context
bzr revid: odo@openerp.com-20120620170354-qszeal54k6zn7vjk
2012-06-20 19:03:54 +02:00
Olivier Dony 6bfb80c41b [MERGE] l10n_ch: bugfixes from Camptocamp, courtesy of Yannick Vaucher
bzr revid: odo@openerp.com-20120620164927-vxc3pz3o97oqfdc9
2012-06-20 18:49:27 +02:00
Olivier Dony 0c69035459 [FIX] OPW 575500: voucher: invoice_id must be passed when computing voucher lines, to properly reconcile
bzr revid: odo@openerp.com-20120620162735-7bkh0hsf60nn9hud
2012-06-20 18:27:35 +02:00
Olivier Dony 2c89678a0e [FIX] OPW 575500: voucher: multi-currency rate not properly set when importing invoice into bank statement
bzr revid: odo@openerp.com-20120620162647-exh5s98f5a9qrng3
2012-06-20 18:26:47 +02:00
Olivier Dony c3ae5153c9 [MERGE] fields.many2many: always respect destination table order
bzr revid: odo@openerp.com-20120620130232-3aeyct2giarto019
2012-06-20 15:02:32 +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
Launchpad Translations on behalf of openerp f9f231ea40 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120620051148-acbu5ob17n43l32y
2012-06-20 05:11:48 +00:00
Launchpad Translations on behalf of openerp 5973022a95 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120616051712-m0hwni003z1a0elq
bzr revid: launchpad_translations_on_behalf_of_openerp-20120617045440-6jvciulawlz0qsm6
bzr revid: launchpad_translations_on_behalf_of_openerp-20120619051218-t37h61frxqcwj657
bzr revid: launchpad_translations_on_behalf_of_openerp-20120620051034-yy6jkmyx7wpsbv9u
2012-06-20 05:10:34 +00:00
tfr@openerp.com cd3879f107 [FIX] fields.many2many : Always respect destination table order
bzr revid: tfr@openerp.com-20120619151651-fokfu5gkfk3qfhxs
2012-06-19 17:16:51 +02:00
Xavier Morel f5e53a1e09 [FIX] stupid groupby bug
bzr revid: xmo@openerp.com-20120619133618-sxgs18sn48x902hv
2012-06-19 15:36:18 +02:00
DHS (OpenERP) 05b1ef36b8 [yaml_import] : For many2many field default value not stored (case : 574360)
bzr revid: dhs@tinyerp.com-20120619124849-ilnzi9r994hob5go
2012-06-19 18:18:49 +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
Olivier Dony 736a3e5811 [FIX] stock: correct order of query parameters, broken in commit 6848
bzr revid: odo@openerp.com-20120619074007-bp2snzj1uoybayxp
2012-06-19 09:40:07 +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
Bhumi Thakkar (Open ERP) 7eceed5fba [FIX] click and hover events add for close circle and label.
bzr revid: bth@tinyerp.com-20120619064109-jxnabvv90oszu4w7
2012-06-19 12:11:09 +05:30
Launchpad Translations on behalf of openerp de8edaf0e0 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120619051311-g1b4ydbdjch4bqyd
2012-06-19 05:13:11 +00:00
Olivier Dony acc0a0a4c2 [FIX] stock: properly pass production lot number as SQL query parameter
lp bug: https://launchpad.net/bugs/1014759 fixed

bzr revid: odo@openerp.com-20120618174153-kx2hcqv2wq7bhf3c
2012-06-18 19:41:53 +02:00
Olivier Dony 125fb808f4 [MERGE] OPW 575624: product,account_payment: respect current symbol position in reports
bzr revid: odo@openerp.com-20120618092442-ae3s7n1yeckmgk1f
2012-06-18 11:24:42 +02:00
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
Launchpad Translations on behalf of openerp 7d872bf3c5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120615050005-4bu4j7c0hinfo4ld
bzr revid: launchpad_translations_on_behalf_of_openerp-20120616051732-t2b544n8z5tt037b
bzr revid: launchpad_translations_on_behalf_of_openerp-20120617045504-q2g3o97z58x6nfwf
bzr revid: launchpad_translations_on_behalf_of_openerp-20120618054458-4uj002kplk070bgx
2012-06-18 05:44:58 +00:00
Olivier Dony e12ed00e4f [FIX] read_group: empty groupby case broken by last read_group patch
Revision 4201 broke the case where groupby == []
by mistake.
r.4201 = rev-id odo@openerp.com-20120609010549-xdktw6xte7fmxjbq

bzr revid: odo@openerp.com-20120615131427-daf5kd5s17my8gnb
2012-06-15 15:14:27 +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