Commit Graph

1471 Commits

Author SHA1 Message Date
Denis Ledoux 5649e0bbf2 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9770 revid:chs@openerp.com-20140116154645-sy4zhdgqc48xaqbx
bzr revid: dle@openerp.com-20131224112612-5gjit5uu1aaaqstx
bzr revid: dle@openerp.com-20140103094532-mbczi9ssr3gc90o1
bzr revid: dle@openerp.com-20140108105833-gblxqdw3if1gt35k
bzr revid: dle@openerp.com-20140115121441-bskbyxxbc09ubavh
bzr revid: dle@openerp.com-20140115165506-yuux9km39gbv7k4n
bzr revid: dle@openerp.com-20140116161415-0y9m0kgavcytzj9z
2014-01-16 17:14:15 +01:00
Denis Ledoux 6109102e91 [FIX] web: view_form.js, allow press enter to break line in fieldtextwidget
bzr revid: dle@openerp.com-20140115120844-1z0pbh9pc63tllce
2014-01-15 13:08:44 +01:00
Martin Trigaux 3f4c637674 [IMP] view_form: do not display hugly error message when name_get returns no value but more helpful message (eg: bad default value returns wrong id)
bzr revid: mat@openerp.com-20140114145720-r3lg0qjezqj4p3i1
2014-01-14 15:57:20 +01:00
Xavier Morel 1b76c66930 [MERGE] fixes for non-direct IME
bzr revid: xmo@openerp.com-20131218152626-kexq1wudvjwnh962
2013-12-18 16:26:26 +01:00
Martin Trigaux ad7951214c [MERGE] [FIX] One2ManyListView: reload line data without saving it when m2o record has changed in edition mode (eg: changing product name in sale order line) (opw #600224)
bzr revid: mat@openerp.com-20131211105009-iylczcepd3a0e61l
2013-12-11 11:50:09 +01:00
Michel Meyer 68aac8e855 [FIX] events handling ordering courtesy of Michel Meyer
lead to errors during the validation of rows in list o2ms.

See https://bugs.launchpad.net/openerp-web/+bug/1182101/comments/20
for an extensive description of the events and issue.

bzr revid: xmo@openerp.com-20131209153519-n05bdx15t75dh7gf
2013-12-09 16:35:19 +01:00
Xavier Morel b4c121db71 [FIX] bad interaction of editable list with IME
IME are ways to input language which can't trivially map to a keyboard
(e.g. CJK language) with a standard-ish keyboard. For japanese IME
this is done by entering text phonetically: text is entered in romaji
and automatically converted to hiragana (or katakana) when it matches
the transcription a japanese syllable (~phoneme?) e.g. to (と). The
text is then split and reprocessed with sequences of hiragana being
converted to kanji (or not), and the possibility to pick the right
kanji when multiple kanji match e.g. for "Tokyo" toukyou -> とうきょう
-> 東京.

But to do the edition, keyboard keys are used. For the japanese IMEs
(tested on Windows, OSX and Linux) [Space] will do the initial
conversion from kana to kanji (and allow selecting an other conversion
or a different kana split) and [Return] will validate the current
conversion (removing the underline marking "unvalidated" kana or kanji
groups).

And that's where the problem hit: IME + browser combinations may or
may not suppress part of all of the event. Firefox will trigger a
keydown of the key which "starts" IME input (e.g. "t") and will
trigger a keyup for the validation key (return), except on Linux where
the initial keydown is suppressed. Inbetween these, it will fire no
keydown, keyup or keypress event but will fire input events (at least
on an input element) every time the displayed text changes.

Meanwhile webkit browsers will, for each press on the keyboard during
IME,

* trigger a keydown with the keyCode 229
* trigger a keyup event with the keycode of the key which was actually
  hit
* trigger input events every time the displayed text changes

This include meta-operation uses of [Space] and [Return].

MSIE has the same behavior (including triggering the input event), but
the keydown event is augmented with ``key`` and ``char`` attributes
providing the character matching the key hit to trigger the change.

Although the triggering of the input even is useless for the purpose
of the editable list (especially here, the purpose of validating a
list row with [Return] one fact stands out: keypress is never
triggered during IME operations, hitting the [Return] key outside of
IME will trigger keydow, keypress, keyup but doing so during IME will
only trigger the first and last.

Thus by changing the binding from keyup (return) to keypress (return)
for a line validation, spurious validation during IME text entry
should be avoided. This seems to work correctly on MSIE (Windows),
Firefox (Windows, OSX, Linux), Chrome (Windows, OSX, Linux) and Safari
(OSX), after testing in IE9, IE10, Chrome 31, Firefox 25 and Safari 7,
and a quick test on a task's o2m did not reveal any regression.

note: not all differences between various browser/os combinations were
inspected in details, there may well be further differences which were
not noticed or not relevant to this precise issue.

bzr revid: xmo@openerp.com-20131206124431-q4a9l1gn9wjtmlvz
2013-12-06 13:44:31 +01:00
Mohammed Shekha (OpenERP) b3391cd7fe [FIX]Web: Fixed the issue of immediate update of many2one field when many2one object name has been changed from follow button popup, reloaded the record from database forcefull to update dataaset, do not call form-blur when follow button is clicked, also do not evict record when record is still not created.
bzr revid: msh@openerp.com-20131203123856-gce4li1igo9k1mak
2013-12-03 18:08:56 +05:30
Christophe Simonis 162dd9ad17 [MERGE] forward port of branch 7.0 up to revid 4075 chs@openerp.com-20131122170316-lbuxddprrgz1are3
bzr revid: chs@openerp.com-20131122131553-i22dj95bvofb7aeu
bzr revid: chs@openerp.com-20131122172422-tsd8wzqkbqknrw1w
2013-11-22 18:24:22 +01:00
Christophe Simonis 8721307dae [IMP] web: avoid double reload() when clicking on a button on a editable form view.
bzr revid: chs@openerp.com-20131120185337-w8857fmwosa36r4d
2013-11-20 19:53:37 +01:00
Christophe Simonis 36b3ea41d8 [MERGE] forward port of branch saas-1 up to revid 3751 chs@openerp.com-20131115104909-3u3mu40g9xnler88
bzr revid: chs@openerp.com-20131115112311-mq197ugcdc38gjnw
2013-11-15 12:23:11 +01:00
Christophe Simonis 993bff902e [MERGE] forward port of branch 7.0 up to revid 4067 chs@openerp.com-20131114142639-ng7wzfjwvvel2nhv
bzr revid: dle@openerp.com-20131112134311-h1vsux0ge17bsqkc
bzr revid: chs@openerp.com-20131114134731-n324awyon0spq624
bzr revid: chs@openerp.com-20130823145204-xwpnlwg0gg2259f6
bzr revid: chs@openerp.com-20130906170157-e7m4pjskyi47q82o
bzr revid: dle@openerp.com-20130909170408-wxgoduzggap6o4ng
bzr revid: dle@openerp.com-20130919141212-ridtrvvfwvu6calr
bzr revid: dle@openerp.com-20131018120136-fvoq337kgx74njsy
bzr revid: dle@openerp.com-20131023103308-18pj2gqq3imrcir7
bzr revid: chs@openerp.com-20131030180528-hqsztaujjjqev8ky
bzr revid: dle@openerp.com-20131106100128-mx8mnguvp321wick
bzr revid: chs@openerp.com-20131115104909-3u3mu40g9xnler88
2013-11-15 11:49:09 +01:00
Martin Trigaux 8c3cdce539 [MERGE] view form: reduce the number of result in 'search more' view opening to 160 records (performances improvement, not filtering every possible record) (opw 593963)
bzr revid: mat@openerp.com-20131113082806-me6uy7cjj6holn56
2013-11-13 09:28:06 +01:00
Thibault Delavallée 0ff21fc5e8 [REV] view_form: statusbar widget: indentation issue + reverted some more changes
bzr revid: tde@openerp.com-20131104120324-2h2j6huhgwc134c9
2013-11-04 13:03:24 +01:00
Thibault Delavallée 4c460dfa4e [REV] Reverted most changes, to lessen the number of
changed in a stable branch.

bzr revid: tde@openerp.com-20131104115909-exhujer0lqqr4xk5
2013-11-04 12:59:09 +01:00
Thibault Delavallée 833c1f2072 [IMP] view_form: fieldstatus: deprecated folded on widget
bzr revid: tde@openerp.com-20131023120804-vx7etkzewkgx9sk0
2013-10-23 14:08:04 +02:00
Thibault Delavallée b7a7cf5fb9 [MERGE] Sync with saas-2
bzr revid: tde@openerp.com-20131021104729-8c39qu7pr431cb51
bzr revid: tde@openerp.com-20131023113825-u1uqcu07bt6i17rk
2013-10-23 13:38:25 +02:00
Thibault Delavallée a28c14a8cc [REV] StatusField: reverted changes about bar widget color and thing slike that.
bzr revid: tde@openerp.com-20131021104708-vrax9zhpjwyjq6ns
2013-10-21 12:47:08 +02:00
Thibault Delavallée fa9f367687 [IMP] form_view: statusbar improvements
It now uses the bar_fold field instead of the fold field
to hide the stage.
It now uses bar_color to personnalize the stage.

Added css for oe_bar_1 (still WIP, just for testing purpose)

bzr revid: tde@openerp.com-20131018132259-2kip8723ibr296ri
2013-10-18 15:22:59 +02:00
Denis Ledoux c348a2f4cd [MERGE] Forward-port of latest saas-1 bugfixes, up to rev. 3747 rev-id: dle@openerp.com-20131018120136-fvoq337kgx74njsy
bzr revid: dle@openerp.com-20131018123253-pvf2tg747vflfp6x
2013-10-18 14:32:53 +02:00
Christophe Simonis 3853f642ff [FIX] web: correct StatusField widget to use dropdown menu
bzr revid: chs@openerp.com-20131018094336-3s8s3uggs60jwkl0
2013-10-18 11:43:36 +02:00
niv-openerp ffe8490aef Enabled sort in o2m
bzr revid: nicolas.vanhoren@openerp.com-20131010091125-0t1v8wmkrn8bnc5y
2013-10-10 11:11:25 +02:00
Christophe Simonis b86eee378e [MERGE] forward port of branch saas-1 up to revid 3743 chs@openerp.com-20130823145204-xwpnlwg0gg2259f6
bzr revid: chs@openerp.com-20130823145527-fz58kta3qpup4sb2
2013-08-23 16:55:27 +02:00
niv-openerp 4cc2766b2e [IMP] added possibility to desactivate quick create in m2o
bzr revid: nicolas.vanhoren@openerp.com-20130822100030-39ipz56hkrtq8pw0
2013-08-22 12:00:30 +02:00
Martin Trigaux cd99b9ffac [MERGE] [FIX] reload form if button has option reload_on_button
bzr revid: mat@openerp.com-20130821085342-8k6q1d2886tmwffm
2013-08-21 10:53:42 +02:00
niv-openerp baef37aec6 [IMP] Removed old JavaScript module loading system in the 'web' addons. Still has some retro-compatibility for other addons.
bzr revid: nicolas.vanhoren@openerp.com-20130806125022-bzjbtn0nqk40ak4g
2013-08-06 14:50:22 +02:00
Olivier Dony cf9d7aaa5f [MERGE] Forward-port of latest bugfixes from 7.0 up to rev 4007 (launchpad_translations_on_behalf_of_openerp-20130730045810-58du4wi80axs0t81)
bzr revid: dle@openerp.com-20130627115936-iw2x6yjejabkc8ys
bzr revid: chs@openerp.com-20130702141958-zxkppo4c6zvpo0uf
bzr revid: odo@openerp.com-20130731072914-0uk62hnao5x502hh
2013-07-31 09:29:14 +02:00
niv-openerp c767a0d34c Added semicolons
bzr revid: nicolas.vanhoren@openerp.com-20130725103301-65nld10p1if7k0zt
2013-07-25 12:33:01 +02:00
niv-openerp 42e493e73e Added Gruntfile with jshint and corrected most js errors
bzr revid: nicolas.vanhoren@openerp.com-20130725100749-0i82gf3k3nvt4r44
2013-07-25 12:07:49 +02:00
Vidhin Mehta 21cc22b9e9 [IMP]check parent is exist or not.
lp bug: https://launchpad.net/bugs/1202120 fixed

bzr revid: vme@tinyerp.com-20130719090753-t1o4l3pyxd2t5kv9
2013-07-19 14:37:53 +05:30
Thibault Delavallée 180212b999 [FIX] Statusbar: fixed clikable statusbar on selection field.
bzr revid: tde@openerp.com-20130618133521-6zey8imcciqthcuk
2013-06-18 15:35:21 +02:00
niv-openerp 24425766ad [REVERT] of revision 3746 because it caused in bug of high priority
lp bug: https://launchpad.net/bugs/1187381 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130617162827-01gm5gvoycf3kz3p
2013-06-17 18:28:27 +02:00
Christophe Simonis a61e7cb0c8 [MERGE] forward port of branch saas-1 up to revid 4887 chs@openerp.com-20130612153934-qyp6pb3bc4za4taf
bzr revid: chs@openerp.com-20130613172414-dln3g4j0ykcwaa02
bzr revid: chs@openerp.com-20130613173900-xl7rh321nnw2b04b
2013-06-13 19:39:00 +02:00
Christophe Simonis 6263673720 [MERGE] forward port of branch 7.0 up to revid 3973 chs@openerp.com-20130611145028-f98x6inytlr3ijjg
bzr revid: chs@openerp.com-20130611155251-zk0qkk70z30n81vl
2013-06-11 17:52:51 +02:00
niv-openerp a94bbf8e5e [FIX] Merge fix in saas1 for the problem that made the server crash when install a db
bzr revid: nicolas.vanhoren@openerp.com-20130610144915-0nj8vpk7n84ocj3f
bzr revid: nicolas.vanhoren@openerp.com-20130610150657-3xddn91gm0iq0ubp
bzr revid: nicolas.vanhoren@openerp.com-20130610154514-oee6s4f9g17bx63z
2013-06-10 17:45:14 +02:00
Christophe Matthieu 27db64f7a0 [FIX] duplicate tag when press tab key two time. Bug 1154057
bzr revid: chm@openerp.com-20130607132203-rcvx6wu820o03tiu
2013-06-07 15:22:03 +02:00
Christophe Matthieu a941c199c1 [FIX] translation button or icon not displayed with html widget. Bug 1179505
bzr revid: chm@openerp.com-20130607101517-zilu97d4akhho72v
2013-06-07 12:15:17 +02:00
Christophe Matthieu 56e4be5d1d [IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607083901-f24fjvo0vi696ll3
2013-06-07 10:39:01 +02:00
Christophe Matthieu 7a0308cdfe [MERGE] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607082958-a59md26e0nmhzsf7
2013-06-07 10:29:58 +02:00
Christophe Matthieu b151613f0d [MERGE] pager should be disappear when we create a new record from o2m/m2m popup.
bzr revid: chm@openerp.com-20130606121754-r9xa11ms6do2nrwh
2013-06-06 14:17:54 +02:00
Christophe Matthieu cf0fcaebc9 [MERGE] Onchange must be called for m2o when the popup view is opened an return changes (save button).
bzr revid: chm@openerp.com-20130606094739-3ydlncwv711txo41
2013-06-06 11:47:39 +02:00
Martin Trigaux 3085dbde98 [MERGE] [IMP] bounce effect on statusbar
bzr revid: mat@openerp.com-20130530121345-5xg7indlm3mgm217
2013-05-30 14:13:45 +02:00
Thibault Delavallée 10807026ea [FIX] FieldMany2One: always_reload option should not prevent from
displaying the field original value that is a valid name_get. The always_reload
perform an additional name_get that may crash due to access rights. Keeping the
original value (coming from the fields view get) in a backup variable allows
to fall back on this value when having issues with access rights.

bzr revid: tde@openerp.com-20130530080218-0kvr36vwqki05rrw
2013-05-30 10:02:18 +02:00
Martin Trigaux a33c762ba0 [IMP] sync with latest trunk
bzr revid: mat@openerp.com-20130529154059-g8yda797kblmfv18
2013-05-29 17:40:59 +02:00
Amit Bhavsar (Open ERP) 20210d96f8 [MERGE] merge with latest trunk
bzr revid: amb@tinyerp.com-20130528085853-33ak0wen7shv6af2
2013-05-28 14:28:53 +05:30
Amit Bhavsar (Open ERP) 5d9859e736 [MERGE] merge with latest trunk
bzr revid: bde@tinyerp.com-20130522070904-c186u5iz00pll3ve
bzr revid: amb@tinyerp.com-20130528052844-e1ybzleq6vbgh2cj
2013-05-28 10:58:44 +05:30
Thibault Delavallée 13caa128a6 [FIX] FieldMany2One: avoid displaying a crash when name_getting an invisible many2one due to an always_reload.
bzr revid: tde@openerp.com-20130527144927-9c9ivhskyiv66fnh
2013-05-27 16:49:27 +02:00
dle@openerp.com c3537fa288 [FIX]web: radio widget name get using context
bzr revid: dle@openerp.com-20130516131416-d02avqqigh4w0tw7
2013-05-16 15:14:16 +02:00
Vishmita Jadeja (openerp) 330cf79497 [IMP]Minor change
bzr revid: vja@tinyerp.com-20130502072052-2jo04lhsz3y3fhxi
2013-05-02 12:50:52 +05:30
Vishmita Jadeja (openerp) 23687ef653 [IMP]Improve code
bzr revid: vja@tinyerp.com-20130501055618-06xc6fgj50npvk3u
2013-05-01 11:26:18 +05:30