Commit Graph

334 Commits

Author SHA1 Message Date
Pierre Verkest f0e331e005 [FIX] correctly update many2many in listview (web client)
Fixes the issue #1216 (follow the link for more information). The issue
was caused by a hack in list view: the magical suffix __display is used
in render_cell to determine if a many2many field should be updated. This
commit simply makes sure that old many2many fields + __display keys are
cleared.

A better way would be to redesign/refactor the list view to avoid that
hack in the first place.  But this would be a much more complex task.
2014-11-26 15:42:34 +01:00
Denis Ledoux 60ab6f111e [FIX] web: on switch form (from list & kanban) do not load record if empty dataset 2014-08-12 17:45:05 +02:00
Martin Trigaux f9d43e83c6 [FIX] web: correct rev 680f955
Missing backport of commit f652402 for buffered dataset
Again, should not be forwardported
2014-07-23 12:31:25 +02:00
Anaël Closson 680f9554b4 [FIX] web: reload after wizard when record has been removed cause exception
If an action unlink the current records (e.g. unreconcile on account.move.reconcile), trigger history_back to avoid errors when trying to reload inexistant record (opw 607883)
This is a partial backport of saas-4 code (rev c0db6ae, 162ad1c) and should not be forward ported.
2014-07-22 13:18:00 +02:00
Martin Trigaux 30ac7248d6 [FIX] view_list: hide pager in view group
Displaying the pagert in view group does not make sense as it's not updated when changing filter and every group (even if more than 80) is displayed in view group
2014-06-27 15:28:34 +02:00
Sandy Carter 3594dc56da [FIX] Add context propagation for m2m list view
Fix bug https://bugs.launchpad.net/openerp-web/+bug/1279885 :
    Many2many fields in Tree views will not get translated.
    If you check the context for a name_get of a m2m field, it is passed as
    None.

Add context propagation to m2m fields in list views.
Fix translation issues when viewing a a many2many field in a Tree view.
2014-05-16 17:42:20 -04: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
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
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 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
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 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
Christophe Simonis 1be71fdae6 [REVERT] revert previous commit which:
1. is wrong
2. break runbot

bzr revid: chs@openerp.com-20131122170316-lbuxddprrgz1are3
2013-11-22 18:03:16 +01:00
Christophe Simonis e555872646 [FIX] web: view list: ensure that the mutex of synchronized method `reload_content` is always released.
bzr revid: chs@openerp.com-20131122131037-sqxs1fdh4al32eh2
2013-11-22 14:10:37 +01:00
Christophe Simonis e5ca5a170c [FIX] web: list views: bubble up failed deferreds.
[FIX] web: list view group: always call post_render method

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

bzr revid: chs@openerp.com-20131114110847-nn382fc60s7u7wp1
2013-11-14 12:08:47 +01:00
Mohammed Shekha (OpenERP) ed7ee33cf7 [FIX]Re-fixed the issue of pager on group by view, last element of the row removes total value.
bzr revid: msh@openerp.com-20131106134929-zn3x03sksy4nruns
2013-11-06 19:19:29 +05:30
Christophe Simonis a237b0525d [FIX] web: allow grouping on fields not present in list view
[FIX] web,web_kanban: read_group: ensure read grouping fields

bzr revid: chs@openerp.com-20131030180242-rxxlawffv13ll5s1
2013-10-30 19:02:42 +01:00
Martin Trigaux 9edf16f669 [FIX] list: force recompute the selection as closing group reset properties (opw #599969)
bzr revid: mat@openerp.com-20131028141647-j6wkvl6plwblh077
2013-10-28 15:16:47 +01:00
xmo d524b95172 [FIX] list view: serialize concurrent calls when loading files and ensure consistency of variables (prevent selection of items in list view lost, opw #599969)
bzr revid: mat@openerp.com-20131025145519-jio03azp64ppi5ro
2013-10-25 16:55:19 +02:00
Mohammed Shekha (OpenERP) 447bec133b [FIX]Web-Pager: Refixed the issue of Pager, there is inconsistency with pager, display of next page is impossible if records are deleted such that dataset size becomes less than or equals to limit, also if all records of current page is deleted then it does not navigate to previous page.
bzr revid: msh@openerp.com-20131025120829-e4kqey0mpz43537c
2013-10-25 17:38:29 +05:30
Mohammed Shekha (OpenERP) 1e95365d84 [FIX]Refixed the issue of pager, does not navigate to previous page when all records of current page deleted.
bzr revid: msh@openerp.com-20131018053656-4tcklfcwqfeit4bb
2013-10-18 11:06:56 +05:30
Mohammed Shekha (OpenERP) e578e2af78 [FIX]Fix the issue of page navigation when all records of current page are deleted, currently it does not go to previous page instead displays blank list, expected behavior: it should navigated to previous page when all records of the current page deleted.
bzr revid: msh@openerp.com-20131017130217-dtpukpq27fdmsvd9
2013-10-17 18:32:17 +05:30
Xavier Morel 7d2938394f [FIX] null >= 0 is true...
bzr revid: xmo@openerp.com-20131014155709-9cg4bzof02bhtyts
2013-10-14 17:57:09 +02:00
Mohammed Shekha 2e3ec5e2e9 [FIX]Fixed the issue of last element of grouped row removed, due to which grouped total information also got lost.
bzr revid: msh@openerp.com-20130703131223-bwu6hl8v5y5sjt5w
2013-07-03 18:42:23 +05:30
Xavier Morel aa416a9951 [IMP] use introduced variable across function
bzr revid: xmo@openerp.com-20130610071036-8w771r4urq5j31zz
2013-06-10 09:10:36 +02:00
Xavier Morel 48d28c8726 [FIX] display issues of objects with a field called "length"
_.each will interpret these as arrays and take incorrect/nonsensical
code paths.

bzr revid: xmo@openerp.com-20130610070527-5u6uirvfkygsp57d
2013-06-10 09:05:27 +02:00
Xavier Morel 1ea609ba65 [FIX] bugs discovered by failing onwrite test case
Following xmo@openerp.com-20130607120355-x3poxy2ar2bpqqvw:

* add_ids should not add ids which are already in the dataset, this
  leads to duplicates which the web client does not overly like

* methods which add or remove records should not manipulate
  dataset.ids as well as that's now automatic (on_write feature)

* record add should only insert the id in the dataset on non-false ids
  (e.g. list edition uses "pending" record with false id during
  creation, then sets the id it got from create() call)

bzr revid: xmo@openerp.com-20130607152326-2pja1kuwo0ropfuw
2013-06-07 17:23:26 +02:00
Xavier Morel 8d0d43b40b [IMP] correctly reinsert ids into dataset when moving them around in the list view
bzr revid: xmo@openerp.com-20130607120355-x3poxy2ar2bpqqvw
2013-06-07 14:03:55 +02:00
Christophe Matthieu 7ad343636b [FIX] view_list: when we have more than 80 record in list and we create new record and switch the views like form->list->form gives traceback. Get if the index is over the number of visible records
bzr revid: chm@openerp.com-20130606142616-41xxepfzkdvyqu9m
2013-06-06 16:26:16 +02:00
Mohammed Shekha 2b65ba1f64 [FIX]Refixed the issue of resequence, added id at specified index in dataset.
bzr revid: msh@openerp.com-20130606065630-r536yqlcq0wihs8l
2013-06-06 12:26:30 +05:30
Mohammed Shekha d8dd8fc14b [FIX]Fixe the issue of listview record re-ordering which is not working due to revision 3898.
bzr revid: msh@openerp.com-20130509085102-ln4lidp7caqw25ur
2013-05-09 14:21:02 +05:30
Xavier Morel c19bc50648 [FIX] ids of deleted records living in shared dataset when clicking on list row
When a record is activated, the listview will do some jiggling around
assigning the ids of internal dataset to the one shared between all
views, this is mostly for the case where one switches from a "grouped"
list view, so the form view only cycles on the "current" group.

Problem is, that internal dataset is not correctly synchronized with
the shared one, so when the id is removed from the shared dataset it
is *not* removed from the internal one(s), and when the switch is made
the ids from the internal dataset are set on the shared one and
reintroduce the deleted record, leading to the form view's incorrect
state.

Fix the issue by updating the dataset's ids list when a record is
deleted from the records tree.

Also extracted some stuff from DataSetSearch's unlink callback so it
can be overridden and is more stable across datasets.

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

bzr revid: xmo@openerp.com-20130416152000-06dbwkgdb8zlf9pc
2013-04-16 17:20:00 +02:00
Dharti Ratani (Open ERP) 0e664c9e93 [FIX]Fix the issue of editing inline many2one values doesn't show up with field name legth
bzr revid: dhr@tinyerp.com-20130329084528-a3ppzy7paww97yc7
2013-03-29 14:15:28 +05:30
niv-openerp 13863aaa99 [FIX] deferred problems when clicking too quickly on some menu items
lp bug: https://launchpad.net/bugs/1100280 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130322162310-135hd0hoak8k5oq6
2013-03-22 17:23:10 +01:00
Antony Lesuisse 1bec18f5f8 [FIX] view_list limits more sensible values
bzr revid: al@openerp.com-20130227212507-ag6ibb9x3nz5deko
2013-02-27 22:25:07 +01:00
niv-openerp 5c3eebcb4d [FIX] crash in editable list o2m when a record is saved
bzr revid: nicolas.vanhoren@openerp.com-20130227141941-phigsnt3x3rj0atu
2013-02-27 15:19:41 +01:00
niv-openerp 5a9bf08f46 [FIX] lot of potential bugs, mainly due to quickly clicking on menu items
bzr revid: nicolas.vanhoren@openerp.com-20130227113132-m2kr9slpxp1pogaz
2013-02-27 12:31:32 +01:00
Xavier Morel 1e9b03ea99 [FIX] listview: bug in binary column download link rendering
bzr revid: xmo@openerp.com-20130222093621-crdgl79nl93zejvh
2013-02-22 10:36:21 +01:00
Vijaykumar Baladaniya 5f23b55909 [FIX] passtrough_events name replace with passthrough_events.
bzr revid: vba@tinyerp.com-20130204084307-8qremz8qi1qcwhfe
2013-02-04 14:13:07 +05:30
niv-openerp 4f07a4c7af [IMP] desactivate sorting in list view with function fields with store=false
lp bug: https://launchpad.net/bugs/1095664 fixed

bzr revid: nicolas.vanhoren@openerp.com-20130103144651-qcxmp0bphkylp9s2
2013-01-03 15:46:51 +01:00
Christophe Matthieu 11db0f89fe [MERGE] trunk-bug-1094839-vja: in listview, sorting arrow disappearing from column header when the user change of the view and return on listview.
bzr revid: chm@openerp.com-20130103092823-jbjhh686vix52ih6
2013-01-03 10:28:23 +01:00
vta vta@openerp.com 948d566403 [MERGE] Improvement on m2obutton widget
bzr revid: vta@openerp.com-20121220150716-a8w94s74x9ejqch5
2012-12-20 16:07:16 +01:00
Fabien Meghazi 31592e96aa [ADD] Added an openerpBounce jquery plugin
bzr revid: fme@openerp.com-20121219151217-bxp1p04gmbccckys
2012-12-19 16:12:17 +01:00
Fabien Meghazi d234a24de0 [MERGE] trunk
bzr revid: fme@openerp.com-20121219150025-h9h1956xey3tok57
2012-12-19 16:00:25 +01:00
niv-openerp 906ceba948 [IMP] lot of small improvements to better detect when a view has finished loading
bzr revid: nicolas.vanhoren@openerp.com-20121213140914-8d1u01h17r2x4fpu
2012-12-13 15:09:14 +01:00
niv-openerp d2863fbd59 [IMP] added "disabled" on buttons in list view during execution of asynchrnous operation
bzr revid: nicolas.vanhoren@openerp.com-20121207154640-609iwn2y093kw171
2012-12-07 16:46:40 +01:00
Tejas Tank 3464960518 Merged Latest.
bzr revid: tta@openerp.com-20121206111229-q2fn8zfp71ntclxv
2012-12-06 16:12:29 +05:00
Xavier Morel ae53b85d90 [FIX] clicks toggling @readonly radio buttons
bzr revid: xmo@openerp.com-20121204162354-6c4z8lvah683c5qx
2012-12-04 17:23:54 +01:00
Christophe Matthieu 2f38a4425f [MERGE] view list: Show the menu sidebar when a child item is showed.
bzr revid: chm@openerp.com-20121204141416-cay34shj7h5y4a6q
2012-12-04 15:14:16 +01:00