Commit Graph

5731 Commits

Author SHA1 Message Date
Launchpad Translations on behalf of openerp d64b172b3b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140423065826-x7fmgc85ckhi9s8u
bzr revid: launchpad_translations_on_behalf_of_openerp-20140423070300-k249yxs2ghd1vaof
2014-04-23 07:03:00 +00:00
Denis Ledoux 6083ed4b46 [FIX] web: abitility to do exact id matching with child_of operator for searchs on many2one fields
bzr revid: dle@openerp.com-20140422150918-nxv2v4bcvi6u3v6g
2014-04-22 17:09:18 +02:00
Martin Trigaux fa4e285be7 [FIX] FieldMany2One: avoid error when saving changes in popup from a related fields (opw 606601)
bzr revid: mat@openerp.com-20140418092033-mvqng3thuy61kfoq
2014-04-18 11:20:33 +02:00
Denis Ledoux 7c668d8eac [FIX] web: double click on save button was trying to save the data two times if there is some latency, event target should be used instead of delegate target
bzr revid: dle@openerp.com-20140417101217-3fwnm76qne6f1vwk
2014-04-17 12:12:17 +02:00
Denis Ledoux f928ba4f10 [FIX] web: double click on save button was trying to save the data two times if there is some latency
bzr revid: dle@openerp.com-20140417101000-6gtyxntkm5d7zcoy
2014-04-17 12:10:00 +02:00
Mohammed Shekha 91930b470d [FIX]Fixed the issue of reference field throws traceback that view is undefined, the reason is that reference field passing DefaultFieldManager while creating instance of many2one widget and DefaultFieldManager is eventually extending instance.web.widget not instance.web.form.FormWidget and hence DefaultFieldmanager will nto having view attribute, instead of calling self.view.do_onchange, trigger changed_value which is going to do the same job.
bzr revid: msh@tinyerp.com-20140416083857-sug0k4a28nkvgg27
2014-04-16 14:08:57 +05:30
Launchpad Translations on behalf of openerp 6ca81553a0 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140415075130-aqn4mzx05l3txtkb
bzr revid: launchpad_translations_on_behalf_of_openerp-20140415075337-ulie3qkes53t8ivf
2014-04-15 07:53:37 +00:00
Martin Trigaux 3a27186643 [MERGE] [FIX] FormView: avoid multiple creations of the same line in o2m fields when the save action fails (e.g. forgot one required field)
This is done by removing the added action 'prepend_on_create' that can be present as many time as we pressed the save button

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

bzr revid: mat@openerp.com-20140414081003-290q4v21q01m4rsi
2014-04-14 10:10:03 +02:00
Denis Ledoux b00a7562f9 [FIX] web: impossible to click on attach button, for many2many_binary
This fix is related to revision 4169 revid:mat@openerp.com-20140407120612-mjb08yts2oa4k4jz

bzr revid: dle@openerp.com-20140409093422-imrg2hqozf46kj8d
2014-04-09 11:34:22 +02:00
Denis Ledoux a16b0c7907 [IMP] web: select input on add record in list editable
bzr revid: dle@openerp.com-20140408120141-f1fx2e9e8vqatccx
2014-04-08 14:01:41 +02:00
Martin Trigaux d0b7e7fc7b [MERGE] [FIX] upload widget: avoid overflow making impossible to click on other buttons than the first one (opw 603125)
bzr revid: mat@openerp.com-20140407120612-mjb08yts2oa4k4jz
2014-04-07 14:06:12 +02:00
Mohammed Shekha f9d143c216 [FIX]Fixed the issue of duplicated one2many lines, weired behavior when you add one2many line and then add another line withour filling required field and then click on save, then remove added one2many line for which we didn't filled required data and then save it, you will get duplicated lines.
bzr revid: msh@tinyerp.com-20140403070844-6ogpdursukue2zoh
2014-04-03 12:38:44 +05:30
Launchpad Translations on behalf of openerp 8752221ac2 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140328064447-upr58gkij5ne9rm3
bzr revid: launchpad_translations_on_behalf_of_openerp-20140329073044-67cql7rohzkmuub9
2014-03-29 07:30:44 +00:00
Martin Trigaux 64ecfa40ec [IMP] cookies: when retrieving session cookie, catch eventual parsing errors and remove cookie if incorrect (opw 605648)
In case of unparsable cookie (modified, corrupted,...), openerp would not load and crash with white screen until expiration.
With the fix goes back to login screen.

bzr revid: mat@openerp.com-20140327120826-2p6ebnojtmdl1wpm
2014-03-27 13:08:26 +01:00
Martin Trigaux a04f73ee80 [IMP] cookies: when retrieving session cookie, catch eventual errors and remove malformed cookie
bzr revid: mat@openerp.com-20140327113401-s3ee7fnexhre9mwb
2014-03-27 12:34:01 +01:00
Denis Ledoux 649ef3ed21 [REVERT] 4164 revid:dle@openerp.com-20140326113036-g9yv3jj6yetwxvg8: this fix actually works in saas-3, but not in 7.0, as search_read method is not part of the orm
bzr revid: dle@openerp.com-20140326123513-jkful2m1n2zjgdmv
2014-03-26 13:35:13 +01:00
Denis Ledoux 162ad1c0f1 [FIX] web: on record reload (form & list view), use search_read instead of read, to check if the user can still read the record (security rules)
bzr revid: dle@openerp.com-20140326113036-g9yv3jj6yetwxvg8
2014-03-26 12:30:36 +01:00
Launchpad Translations on behalf of openerp a8d14c47df Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140318062141-rdiqz2ptnz3qmxd0
bzr revid: launchpad_translations_on_behalf_of_openerp-20140325072122-d9jgtji9dmmytg8d
2014-03-25 07:21:22 +00:00
Martin Trigaux 53922c9593 [FIX] pager: revert of revision 4159, the pager was disapearing when going in editable mode (which is more problematic that the issue rev 4159 was trying to fix)
bzr revid: mat@openerp.com-20140314132854-8ie8sosx9xecuww4
2014-03-14 14:28:54 +01:00
Martin Trigaux 08e07af590 [FIX] pager: do not try to toggle the visibility if the pager do not exists yet
bzr revid: mat@openerp.com-20140314112709-0sqq6tcpmza34q1e
2014-03-14 12:27:09 +01:00
Martin Trigaux 71d8f8f1c4 [FIX] pager: show the pagger earlier to avoid slow loading to mix list and form pagers when fast switching
bzr revid: mat@openerp.com-20140313123811-ej7lu53xp51kn6gu
2014-03-13 13:38:11 +01:00
Martin Trigaux 82692f11a0 [MERGE] [FIX] one2many fields: when sortign on a column of type m2o (format (id, name)), instead of sorting on the tuple (and then id), sort on the name_get value to match what is shown on the screen
bzr revid: mat@openerp.com-20140312150435-shq9hy3b9njkhxsn
2014-03-12 16:04:35 +01:00
Denis Ledoux 6e9f3ad806 [FIX] web: set z-index of 9999 for autocompletion pane of search bar, to avoid being behind jquery ui dialogs. Besides, this pane should always be on top, therefore we can assume that setting 9999 will not have bad side effects
bzr revid: dle@openerp.com-20140311104947-is5qpw71y1m2oakf
2014-03-11 11:49:47 +01:00
Xavier ALT c033e5a535 [FIX] web: on SearchPopup creation concat build context even if we have initial_ids
On SearchPopupCreation, if we have initial_ids - 1st search_read() will be
  missing custom context defined on the field.

  1. defined view like this: <field name='my_many2one_field_id' context="{'test': 1}"/>
  2. in we expand the list of available item, name_search() has 'test' in context
  3. in we click on 'Search More', search_read() is missing 'test' in context
  4. if we change filter add/remove item, search_read() will have 'test' in context

  Step 3. is wrong, should also have 'test' in context

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

bzr revid: mat@openerp.com-20140311091522-03imwd5rj3rmwapl
2014-03-11 10:15:22 +01:00
Launchpad Translations on behalf of openerp f166daf065 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140308065427-0he29w0cqe07xmc8
bzr revid: launchpad_translations_on_behalf_of_openerp-20140308065421-4udfyb7xcfq5h1zy
bzr revid: launchpad_translations_on_behalf_of_openerp-20140309060314-64jktl10pkq3inv4
2014-03-09 06:03:14 +00:00
Martin Trigaux 618c8b9100 [FIX] quick create: do not add the id in the form if the form is readonly (eg: clicking on save button will make the form uneditable)
bzr revid: mat@openerp.com-20140307141257-rvusvzm6oq3tel51
2014-03-07 15:12:57 +01:00
Launchpad Translations on behalf of openerp fd98bf36aa Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140307072427-zkvqj45icrzupx0m
bzr revid: launchpad_translations_on_behalf_of_openerp-20140307072433-0lqpjt07j1s8k8cs
2014-03-07 07:24:33 +00:00
Martin Trigaux 22f86f097a [MERGE] [FIX] export wizard: better behaviour when saving new fields list
- Show the fields list once we save the first one
- When delete a list, remove the selected fields
- When add a list, do not remove the selected fields

bzr revid: mat@openerp.com-20140305100843-ircqtucf1pkn3wzd
2014-03-05 11:08:43 +01:00
Martin Trigaux 7bb95a4468 Update undescore.js to version 1.6 and underscore.string.js to version 2.3
bzr revid: mat@openerp.com-20140304125528-97w5kbv3ry028kn9
2014-03-04 13:55:28 +01:00
Mohammed Shekha (OpenERP) f29f1e6f04 [FIX]Fixed the issue of o2m sorting by column, m2o field does not give proper result for sorting because whole value of m2o [id, value] going to compare for sorting.
bzr revid: msh@openerp.com-20140304110659-4uu38feetsjj0tt5
2014-03-04 16:36:59 +05:30
Martin Trigaux a1a5bc6c06 [MERGE] [FIX] view list: pagination problem when delete records in list view
When delete a record, correctly display the number of remaining items displayed (eg: 1-79 of 99)
When no more items in a page, force switch to previous page
When no more pager, reload the content to display potential items in next page

bzr revid: mat@openerp.com-20140303164114-pzeuu9hxvq17lx02
2014-03-03 17:41:14 +01:00
Launchpad Translations on behalf of openerp 4a6ba6f107 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140222073700-ln192h40jpgmjkzn
bzr revid: launchpad_translations_on_behalf_of_openerp-20140225062424-uzng6wm762r9e5y1
bzr revid: launchpad_translations_on_behalf_of_openerp-20140227063007-7dey6pyrhev19em4
bzr revid: launchpad_translations_on_behalf_of_openerp-20140301055121-idw71yvmfonj1mmz
2014-03-01 05:51:21 +00:00
Martin Trigaux 16a5c45114 [FIX] home action: open the linked menu in addition to execute the action. The menu tree is now correctly displayed instead of only messaging.
bzr revid: mat@openerp.com-20140221165706-79uqffr5nk4zbj5e
2014-02-22 03:57:06 +11:00
Denis Ledoux ec0f9de9dc [FIX] web: preserve order of saved export fields list
bzr revid: dle@openerp.com-20140221115855-ycny8ai1vyb23cdd
2014-02-21 12:58:55 +01:00
Martin Trigaux 8be121ff69 [MERGE] [FIX] view_list: avoids getParent() js error when clicking to fast on menu items that load a list view after loading a form view
bzr revid: mat@openerp.com-20140218143111-yot645o83gxvkujb
2014-02-18 15:31:11 +01:00
Martin Trigaux 2e831ab7c3 [IMP] data: skip read_ids call when got no id (opw 604099).
This avoids making useless calls to to read the values of o2m fields when the read on a record already told us there was no ids.

bzr revid: mat@openerp.com-20140218101438-yqim33cvtg6wt4mw
2014-02-18 11:14:38 +01:00
Cecile Tonglet 5ef7c4a6a1 [FIX] getParent() js error when clicking to fast on menu items that load a list view after loading a form view
bzr revid: cto@openerp.com-20140217104920-fu8hcqd51bh7qnrp
2014-02-17 11:49:20 +01:00
Martin Trigaux 9cc13d4216 [MERGE] [FIX] home action: fixing the broken field 'action_id' on the res.users form (lost with 6.1->7). This field executes a custom action at page load.
bzr revid: mat@openerp.com-20140214131800-9vwuxe9b2zki35il
2014-02-14 14:18:00 +01:00
Martin Trigaux d65df64cdd [IMP] always click on first link to have menus and breadcrumb
bzr revid: mat@openerp.com-20140214111707-7zzpeccs9aanfdct
2014-02-14 12:17:07 +01:00
Martin Trigaux 8877c10161 [FIX] login: look at the value of action_id on the current res.users to execute the action instead of the first link (Inbox). Bring back 6.1 behaviour.
bzr revid: mat@openerp.com-20140214111540-sbn3y6ou3vrjza15
2014-02-14 12:15:40 +01:00
Launchpad Translations on behalf of openerp 19ba8c54c9 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140214074449-flu4n6hfh9nua9t3
bzr revid: launchpad_translations_on_behalf_of_openerp-20140214074835-2p2r1vb6ucynbspm
2014-02-14 07:48:35 +00:00
Martin Trigaux ce778f2000 [MERGE] [FIX] css: Fixed the issue of statubar not aligned with buttons in chrome browser.
bzr revid: mat@openerp.com-20140213145755-txvtwqbfc83vnw9o
2014-02-13 15:57:55 +01:00
Mohammed Shekha (OpenERP) a8943b416a [FIX]Web, Statusbar: Fixed the issue of statubar in chrome is aligned, it is aligned in inline block.
bzr revid: msh@openerp.com-20140213115556-irdodahpw0atgy5u
2014-02-13 17:25:56 +05:30
Martin Trigaux 409c3cfe9f [FIX] data: _.find (prefered to older _.detect) may return undefined if no match and would trow an error when applying .values
Instead returns undefined which is handled below.
This does not solve the issue when records are not loaded properly but gives a better information on the reason.

bzr revid: mat@openerp.com-20140213085008-pnq4r0ebfl072u78
2014-02-13 09:50:08 +01:00
Denis Ledoux 749e05ccb8 [FIX] close autocomplete listing on input
Closing previously occured on search request (so that a user wouldn't be able
to select "old" data on new search request), but ``search`` is only triggered
after the search delay. Worked when delay was 0, with it being moved to 250 a
user can get results matching the previous search instead of the current one.

Trigger a closing of the current results list on any ``input`` event, which is
when text is entered in any of the searchview's ``InputView``

bzr revid: dle@openerp.com-20140210140032-06dnlxepcc5ae21f
2014-02-10 15:00:32 +01:00
Martin Trigaux b75c52f3ed [IMP] reference fields: display a more user-friendly window title when open a chosen many2one record in reference field
bzr revid: mat@openerp.com-20140206102409-4lbx7ofsgz8speni
2014-02-06 11:24:09 +01:00
Launchpad Translations on behalf of openerp 7c691e9e27 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140206062518-3g0oj0z7mlartzal
2014-02-06 06:25:18 +00:00
Martin Trigaux ea3c17a2e9 [MERGE] [FIX] search: make sure search view is not destroyed when starting SearchView widget
This avoids getting the error 'Cannot call method 'getParent' of undefined'

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

bzr revid: mat@openerp.com-20140205102107-5ggbbkyr172855uu
2014-02-05 11:21:07 +01:00
Martin Trigaux 14631ed6c5 [FIX] css: remove height: 18px on .oe_facet_value property to avoid long filter name to exceed the size of the box (on 2 lines)
bzr revid: mat@openerp.com-20140204155046-ifqts8mpaqhgvjnj
2014-02-04 16:50:46 +01:00
Cecile Tonglet df0076c67d [FIX] getParent() js error when clicking to fast on menu items of dashboards
bzr revid: cto@openerp.com-20140204150544-nkuhxree6qijihq2
2014-02-04 16:05:44 +01:00
Launchpad Translations on behalf of openerp a12fb24290 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140204064842-0dbci9bv8whxs8ax
2014-02-04 06:48:42 +00:00
jke-openerp 41f66b8835 [TYPO] Fix bug css revert rev 4122 and add clear:both
revert because was breaking the rendering of forms using oe_title as clearfix hack
adding clear on .oe_form_group to fix the journal form on firefox (block was unaligned, some fields out of the screen)

bzr revid: jke@openerp.com-20140203173926-ohabh1vahcwqijug
2014-02-03 18:39:26 +01:00
Launchpad Translations on behalf of openerp 9b25045d95 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140203055616-29ji7mugvwf3jpmn
2014-02-03 05:56:16 +00:00
Martin Trigaux 23de024718 [IMP] attachement: remove unnecessary redraw added at rev 4128 and change message to be the same than in mail
bzr revid: mat@openerp.com-20140131102836-e89xo4nrwk32uij8
2014-01-31 11:28:36 +01:00
Martin Trigaux 3a07e0a012 [FIX] attachement: display error message (removed inexistant template) and redraw the window (to avoid getting stucked)
bzr revid: mat@openerp.com-20140129141438-3883hhzdiwyoo19t
2014-01-29 15:14:38 +01:00
Launchpad Translations on behalf of openerp 21ad5a6f48 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140126051546-xdjoni3k2eium078
bzr revid: launchpad_translations_on_behalf_of_openerp-20140128070317-kjn3wh5y1v9z2ijd
2014-01-28 07:03:17 +00:00
Christophe Simonis 457d661ae0 [FIX] test: correct Mock of search_read
[IMP] search_read: build order index using dict comprehension

bzr revid: chs@openerp.com-20140123170836-4qu0ei6zucaprwxs
2014-01-23 18:08:36 +01:00
Frédéric van der Essen 2f2c1057b3 [FIX] read: fix performance issue due to O(n)^2 sorting
bzr revid: fva@openerp.com-20140123161523-xvc8so45uwj3uivs
2014-01-23 17:15:23 +01:00
Martin Trigaux 3c3ab07e2f [FIX] format_value: correctly compose if block, we are doing python here...
bzr revid: mat@openerp.com-20140121142625-fy8zkafcvb9wwz88
2014-01-21 15:26:25 +01:00
Martin Trigaux 36048a8442 [IMP] always apply substring and call directly str_to_date
bzr revid: mat@openerp.com-20140121135058-cr3ivak97rqm6npo
2014-01-21 11:50:58 -02:00
Martin Trigaux 9a0a02060f [FIX] format_value: when formating to date, make sure not converting from a datetime string as would make timezones apply and lead to a possible day change
bzr revid: mat@openerp.com-20140121132725-k9f8hna3lg7nq7g8
2014-01-21 11:27:25 -02:00
Martin Trigaux c09798bfbb [FIX] css: remove useless css properties
float:left with cleartext hack is the same as no properties, and it's working in firefox

bzr revid: mat@openerp.com-20140120163554-zf0sq98ko8qqc9fb
2014-01-20 17:35:54 +01:00
Martin Trigaux 263693e44e [FIX] search: add delay of 250us (was 0) on autocomplete fields in search bar and m2o fields.
This avoids making a search request for each keypressed

bzr revid: mat@openerp.com-20140120160147-q7lg4j93c836ec44
2014-01-20 17:01:47 +01:00
Martin Trigaux c3e31842e0 [FIX] css: unify lines in view log menu
This prevents lines in bold font to be larger than normal one and produce a gap in lines (in Firefox at least)

bzr revid: mat@openerp.com-20140120150606-dvoetrbp3cavtuc3
2014-01-20 16:06:06 +01:00
Launchpad Translations on behalf of openerp 28d79433c3 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140118070457-rn2tgdxis2fi3nqo
bzr revid: launchpad_translations_on_behalf_of_openerp-20140119055822-ajy043mntc4jr407
bzr revid: launchpad_translations_on_behalf_of_openerp-20140120055854-z7wtyb24c5t8kcmj
bzr revid: launchpad_translations_on_behalf_of_openerp-20140118070538-2xm86ece1aate8u9
bzr revid: launchpad_translations_on_behalf_of_openerp-20140119055932-sa6vrp2g8ua3u88e
bzr revid: launchpad_translations_on_behalf_of_openerp-20140120055948-lwcyqcfutgamwac1
bzr revid: launchpad_translations_on_behalf_of_openerp-20140118070546-d89xqw56zou7e9p9
bzr revid: launchpad_translations_on_behalf_of_openerp-20140120055955-6wrdxqy1018mo7jq
2014-01-20 05:59:55 +00:00
Martin Trigaux 2dc722ac80 [FIX] format_value: consider text fields te same way as char fields for empty values
bzr revid: mat@openerp.com-20140117113141-i95ncy04azzmahqk
2014-01-17 19:31:41 +08:00
Martin Trigaux bd2bd8dbbc [FIX] export: ignore unexistant field when retrieving field labels in saved field list
This avoids getting an error if a list contains a field no longer present in the model (eg: removed custom field)

bzr revid: mat@openerp.com-20140117101655-gz05oxkebn0bue8w
2014-01-17 11:16:55 +01:00
Mohammed Shekha (OpenERP) f1d96a12b0 [FIX]Re-Fixed the issue of file input widget which is not working in firefox and IE.
bzr revid: msh@openerp.com-20140116115247-abzdc5blst8ucfmm
2014-01-16 17:22:47 +05:30
Launchpad Translations on behalf of openerp f39b8bb436 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140116060347-s1e2v9o33n1cxk2y
bzr revid: launchpad_translations_on_behalf_of_openerp-20140116060418-cw791djr2ebt2wuy
bzr revid: launchpad_translations_on_behalf_of_openerp-20140116060651-x8r0l0m27wcx0yav
2014-01-16 06:06:51 +00:00
Cecile Tonglet f00e6711f5 [FIX] Fix the missing border-bottom of the notebook in dialogs
bzr revid: cto@openerp.com-20140115142608-rjemiq5lq8ju8zc0
2014-01-15 15:26:08 +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 2170efe270 [MERGE] [FIX] reference field: correct editable tree view for refrence field (opw 601553)
bzr revid: mat@openerp.com-20140115110038-30hgekee12evx5fm
2014-01-15 12:00:38 +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 ALT 7960f9fc59 [FIX] web: list view: fix wrong css for fields.reference in editable tree view
bzr revid: xal@openerp.com-20140114115947-gkh09tb2vxsjyksk
2014-01-14 12:59:47 +01:00
Xavier ALT 9a84e25342 [FIX] web: list view: keep original fields.reference value instact, store it's display in fake field_name+'__display' column, so that editing value in editable tree mode works
bzr revid: xal@openerp.com-20140114100439-hvdu9cxwyb3vvsum
2014-01-14 11:04:39 +01:00
Martin Trigaux cc553cc507 [FIX] format: trying to format an undefined value as the same effect as a value to false or infinity: return value_if_empty parameter
bzr revid: mat@openerp.com-20140113172347-00anf6lh2jxin84w
2014-01-13 18:23:47 +01:00
Denis Ledoux e00c236693 [FIX] web: redirect with hash always use html redirect
# Most IE and Safari versions decided not to preserve location.hash upon
# redirect. And even if IE10 pretends to support it, it still fails
# inexplicably in case of multiple redirects (and we do have some).
# See extensive test page at http://greenbytes.de/tech/tc/httpredirects/

bzr revid: dle@openerp.com-20140108105307-8dzzkxvtesb5d813
2014-01-08 11:53:07 +01:00
Launchpad Translations on behalf of openerp dc7821ab8f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140108053808-kp6y8v47dolfbvup
bzr revid: launchpad_translations_on_behalf_of_openerp-20140108054028-juvi5k3459lfg0ov
bzr revid: launchpad_translations_on_behalf_of_openerp-20140108054034-xfyjwtdxhq3abo8c
2014-01-08 05:40:34 +00:00
Olivier Dony 1bb2fccb9d [FIX] web: avoid crash when the Home client action is called without `action` param
E.g. this could happen when the HistoryBack client action
was unable to restore the previous breadcrumbs item, and
used the Home action as fallback. Could be reproduce by
performing a successful import from an action without
menu and context, such as what you get after refreshing
your browser.

bzr revid: odo@openerp.com-20140107161154-430y7hlf9mvtfyfe
2014-01-07 17:11:54 +01:00
Denis Ledoux 5ba8c98fee [REVERT] rev 4098, revid:dle@openerp.com-20131224112201-0zlxa6fevvj3501h. Partialy break the design (buttons and status bar not displayed sometimes)
bzr revid: dle@openerp.com-20140103094415-vi99tbbeitzr7r2b
2014-01-03 10:44:15 +01:00
Launchpad Translations on behalf of openerp c66a5ed402 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131227053956-p7tdskfkfwn0icl8
bzr revid: launchpad_translations_on_behalf_of_openerp-20131230050721-dfw5fsmgo8btk6tq
bzr revid: launchpad_translations_on_behalf_of_openerp-20131231052707-fyy1k7m0u3n88vw0
bzr revid: launchpad_translations_on_behalf_of_openerp-20140101054406-tted2yxu518pvp2p
2014-01-01 05:44:06 +00:00
Mohammed Shekha (OpenERP) 3032f36b88 [FIX]Web: Refixed the issue of context propagation, also removed the view references of current dataset.
bzr revid: msh@openerp.com-20131226071228-4qfd2qcz1b5rfji4
2013-12-26 12:42:28 +05:30
Mohammed Shekha (OpenERP) 1496d7a77c [FIX]Web: Refixed the issue of context propagation, we must not remove search_default and group_bys of current action context, previous fix was removing action context, improved the fix, also added pairs and object function for sake of simplicity.
bzr revid: msh@openerp.com-20131224135526-55b4cd3qyt0j5ugi
2013-12-24 19:25:26 +05:30
Mohammed Shekha (OpenERP) 58d1704162 [FIX]Web: Refixed the issue of context propagation, we must not remove search_default and group_bys of current action context, previous fix was removing action context, improved the fix.
bzr revid: msh@openerp.com-20131224112403-98cgl6lit285kstw
2013-12-24 16:54:03 +05:30
Denis Ledoux 7bb4f6da82 [FIX]web: status bar alignment, sometimes wrong on google chrome
bzr revid: dle@openerp.com-20131224112201-0zlxa6fevvj3501h
2013-12-24 12:22:01 +01:00
Launchpad Translations on behalf of openerp 64cc283264 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131219061541-j0v5712t55sdiqb6
2013-12-19 06:15:41 +00: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
Xavier ALT 9491755b8b [FIX] web: only show in 'Advanced Search', fields that are actually searcheable and avoid duplicate 'ID' field
bzr revid: xal@openerp.com-20131218113547-myl7eihvw5vbzkaa
2013-12-18 12:35:47 +01:00
Martin Trigaux cfd24d9822 [FIX] view_list_editable: toggle visibility (using force_visibility attribute) for readonly changes, using effective_invisibility instead of invisibility attribute (opw 601970)
bzr revid: mat@openerp.com-20131217104111-u9bnqvz7rd5rzwnc
2013-12-17 11:41:11 +01:00
Martin Trigaux 585c72abd7 [MERGE] [FIX] Grouped ListView: avoid removing info in row title (such as total) when removing page numbers (if grouped view contains more than 80 elements) (opw 594708)
bzr revid: mat@openerp.com-20131211113330-c6mnxwba7yvxaqmc
2013-12-11 12:33:30 +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
Launchpad Translations on behalf of openerp 767207aa23 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131211062724-zxcigdht6w71xy7v
bzr revid: launchpad_translations_on_behalf_of_openerp-20131211062802-mh61vodnsw0sr8im
bzr revid: launchpad_translations_on_behalf_of_openerp-20131211062808-o9fkpg2cg9cb403z
2013-12-11 06:28:08 +00:00
xmo 762774df37 [FIX] prevent field going to be misplaced when going from readonly to writable in editable list view
bzr revid: mat@openerp.com-20131210155703-2mzqa2mch46nxpcj
2013-12-10 16:57:03 +01:00
Xavier Morel 9322b677aa [FIX] weird behavior when drag&dropping a row during edition in editable listview
When dropping, would simultanously stop the edition and try a write
(so 2 writes on the same record) and generally screw up the state of
all the things, ending up with an empty row and a weird (and
incorrect) warning.

This can be fixed by preventing resequencing during the creation or
edition of a record (row) inline.

For simplicity, implemented by looking up .ui-sortable descendants —
there are no utility methods for handling that and, aside from the
class, there's no good way to know if sortability was enabled on a
list body or not (as far as I can see, jquery-ui's sortable has no API
to query that) — and using jquery-ui's sortable API for enabling and
disabling sortable on the fly.

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

bzr revid: xmo@openerp.com-20131210124755-ugr3ehf744qoh1o5
2013-12-10 13:47:55 +01:00
Martin Trigaux f32b87e14d [FIX] css: avoid tabs in row below to move when selected (opw 601379)
bzr revid: mat@openerp.com-20131210112444-pk9yh8bke1z7eerr
2013-12-10 12:24:44 +01:00
Xavier Morel 029c866b8c [FIX] issue when tabbing too much at end of editable list row
Tabbing is intercepted by keydown_TAB, which — if the current cell is
the last active field of the row — will then call _next:476. _next
then calls save_edition:300 which "takes a lock" (more precisely
serializes access to its body) and within its body checks if an
edition is active (:303) and returns immediately if not (:304).

The problem here is when a second tab event arrives during the
potentially extremely long save_edition body (since for toplevel lists
it needs to perform a complete RPC call): the overall state of the
list has not changed so the second event *also* goes into _next, then
into save_edition. There it's serialized with the ongoing call and
thus inactive until said ongoing call's termination, and reaches the
body after the current edition has been wound down. As a result, the
body of _next (:408) gets the resolution of ``$.when()``, which is
``null`` and the first condition blows up.

There are 3 possible ways to fix this:

* adding a check in keydown_TAB's handler to see whether a _next call
  is ongoing. This requires adding a state flag to the object and does
  not protect (or cooperate with) _next calls from outside this
  specific handler, unless they are modified in turn.

* alter save_edition to *fail* in case there's no ongoing edition:
  this part was originally in ensure_saved which does not care whether
  a save was necessary or not and does not propagate save information,
  so ``$.when()`` made sense. In save_edition, there are really 3
  different outcomes: the save succeeded, the save failed (or
  potentially part of save's postprocessing failed, for the current
  implementation) and the save was unnecessary. But deferred only
  provide 1 bit of state (success or failure), so the last state has
  to be merged into either success or failure.
 
  Both make sense, to an extent. Changing from one to the other (as
  necessary here) could break existing code and have more extensive
  effects than expected.

* the simplest and least far-raging change is to just alter the
  save_edition().then handler to ignore cases where save_edition()
  results in no saveinfo, this can be assumed to be a
  bailed-out/unnecessary save call.

For simplicity, the 3rd solution was picked here although with more
extensive tests &al I'd have preferred trying out 2nd.

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

bzr revid: xmo@openerp.com-20131210093055-207fevqc1npy7fwr
2013-12-10 10:30:55 +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
Launchpad Translations on behalf of openerp a092227c6e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131207063209-2xi8ba5wu6l6ze00
bzr revid: launchpad_translations_on_behalf_of_openerp-20131208054536-mg4w4d6ljq8ji1nj
bzr revid: launchpad_translations_on_behalf_of_openerp-20131207063232-l64v1fhf1qcpxm2l
bzr revid: launchpad_translations_on_behalf_of_openerp-20131208054646-zixed7abpuze4qt1
bzr revid: launchpad_translations_on_behalf_of_openerp-20131123062625-f7inv72rtg2kel8g
bzr revid: launchpad_translations_on_behalf_of_openerp-20131124054801-1ukcpelfukkvwn60
bzr revid: launchpad_translations_on_behalf_of_openerp-20131125060120-nm8tkfbftg8c88v1
bzr revid: launchpad_translations_on_behalf_of_openerp-20131126060753-jnx5ran2accmo0lh
bzr revid: launchpad_translations_on_behalf_of_openerp-20131127054000-wtg675pf33f3bkar
bzr revid: launchpad_translations_on_behalf_of_openerp-20131129053028-abszdj4y76smnacb
bzr revid: launchpad_translations_on_behalf_of_openerp-20131201054555-3u1m1sy1f2og78nn
bzr revid: launchpad_translations_on_behalf_of_openerp-20131202055227-mm70khzdfnp4qcj9
bzr revid: launchpad_translations_on_behalf_of_openerp-20131207063237-vza5vb51xmd2ipl6
bzr revid: launchpad_translations_on_behalf_of_openerp-20131208054653-f4zth8j3iczlzcqz
2013-12-08 05:46:53 +00: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