Commit Graph
44105 Commits
Author SHA1 Message Date
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
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
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
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
Bhumi Thakkar (Open ERP) 3fdc0d259e [FIX] On mousedown event of dialog title autocomplete is closed.
bzr revid: bth@tinyerp.com-20120618091012-mr0gb8b6db7okq41
2012-06-18 14:40:12 +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
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
Launchpad Translations on behalf of openerp 526f75141a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120609061953-8ot3eu1w9m7eli02
bzr revid: launchpad_translations_on_behalf_of_openerp-20120610045545-ecvoyfkhtwobthc4
bzr revid: launchpad_translations_on_behalf_of_openerp-20120611051238-i3da13m7dyxm9p02
bzr revid: launchpad_translations_on_behalf_of_openerp-20120612053734-e4s4rk8hoaqk1s1s
bzr revid: launchpad_translations_on_behalf_of_openerp-20120613053214-pviycublvk35k8h7
bzr revid: launchpad_translations_on_behalf_of_openerp-20120614045648-5nb5wijedbwxsno9
bzr revid: launchpad_translations_on_behalf_of_openerp-20120615045953-oble1p2x8m6ep0pb
2012-06-15 04:59:53 +00: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
Ravi Gohil (Open ERP) 94ffedd928 [FIX] project: Message not been translated : (Maintenance Case : 575766)
bzr revid: rgo@tinyerp.com-20120614112351-jmq1xri315byqr33
2012-06-14 16:53:51 +05:30
Fabien Meghazi 95b323f398 [REM] Removed <image> tags from wizards
bzr revid: fme@openerp.com-20120614090217-wrcgj200pcqzfpor
2012-06-14 11:02:17 +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
Launchpad Translations on behalf of openerp f7e6360793 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120613053246-5q24ofrak7je9oc3
bzr revid: launchpad_translations_on_behalf_of_openerp-20120614045756-qm25ey22e5tqfgbk
bzr revid: launchpad_translations_on_behalf_of_openerp-20120614045807-k158nma001m2gzz3
2012-06-14 04:58:07 +00: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
Amit Dodiya c1230ab7d1 [FIX] Currency symbol position is not changed as per currency(after/before) configuration
bzr revid: ado@openerp.com-20120613051906-jkwtdhkcxfi0vwz5
2012-06-13 10:49:06 +05:30
Olivier Dony 17915b7cea [MERGE] OPW 575526: fix returning product with upstream stock moves + multiple returns
lp bug: https://launchpad.net/bugs/944025 fixed
lp bug: https://launchpad.net/bugs/1003986 fixed

bzr revid: odo@openerp.com-20120612161551-ev5vw9zql6olswie
2012-06-12 18:15:51 +02:00
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
Launchpad Translations on behalf of openerp ef7c1ab249 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120606053108-x08p469b10zhf4px
bzr revid: launchpad_translations_on_behalf_of_openerp-20120607051230-69g4lipyo5n9ywez
bzr revid: launchpad_translations_on_behalf_of_openerp-20120608051607-jkzh683v40hae4vf
bzr revid: launchpad_translations_on_behalf_of_openerp-20120609062027-r2caobbpxwjpm6q2
bzr revid: launchpad_translations_on_behalf_of_openerp-20120610045624-mdizos4m57iuvdhf
bzr revid: launchpad_translations_on_behalf_of_openerp-20120611051303-zae4l2i7icagbwu6
bzr revid: launchpad_translations_on_behalf_of_openerp-20120612053814-p5i3x7if446sjimc
bzr revid: launchpad_translations_on_behalf_of_openerp-20120612053818-169dpckzekdxr1o7
2012-06-12 05:38:18 +00: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
Fabien Meghazi 080c6d014c [FIX] Fixed http header Content-Disposition for non-ascii filenames
lp bug: https://launchpad.net/bugs/993036 fixed

bzr revid: fme@openerp.com-20120611131822-rr5m8qzr68ujjoda
2012-06-11 15:18:22 +02:00
Launchpad Translations on behalf of openerp de1db8940e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120610045631-0e8vs10g6yusa3s6
2012-06-10 04:56:31 +00:00
Maxime Chambreuil 1d5f8a43f0 [ADD] flag icon
bzr revid: maxime.chambreuil@savoirfairelinux.com-20120609154328-c69cw8nels4iywva
2012-06-09 11:43:28 -04:00
Maxime Chambreuil 0eee772093 [IMP] Use account.data_account_type. Remove notax. Improve chart of taxes.
bzr revid: maxime.chambreuil@savoirfairelinux.com-20120609144132-gdmwqfdc2vbq1qv6
2012-06-09 10:41:32 -04:00
Olivier Dony 6da2d94357 [FIX] read_group: remove prohibitive n^2 operations, could freeze the server on large group_by results
This patch replaces two O(n^2) operations, one 
filter and one sort, with O(n) or better operations.
It takes slightly more memory due to the use of
one extra data copy, but takes virtually no time
to process even with 600k result lines, whereas
the previous code would just freeze the server
for a long time.

bzr revid: odo@openerp.com-20120609010549-xdktw6xte7fmxjbq
2012-06-09 03:05:49 +02:00
Olivier Dony fe39e36f35 [FIX] export_data: avoid access error while auto-generating external IDs during export
bzr revid: odo@openerp.com-20120608213018-9oe5wvtn8egp30zm
2012-06-08 23:30:18 +02:00
olt@tinyerp.com f294335d94 [FIX] if Exception 'value' attribute (e.value in this case) is not a string (some errors in the reporting system sometimes set a value that is not a string) the exception handling mecanism of the web client raises an exception an prevent the first raised exception from being displayed. The displayed exception is the one raised in the exception handling mecanism which is not helpful
bzr revid: olt@tinyerp.com-20120608134722-raytxpk6o2rux79f
2012-06-08 15:47:22 +02:00
pso (OpenERP) 99f7f15111 [IMP] stock: Improved code quality for precision and improved name for return moves(case:575526)
bzr revid: pso@tinyerp.com-20120608131901-3q63jkmv9x4xl1uc
2012-06-08 18:49:01 +05:30