Commit Graph

368 Commits

Author SHA1 Message Date
Christophe Simonis 47b2f7ea9e [MERGE] forward port of branch 7.0 up to 3a1c693 2015-12-08 12:16:00 +01:00
Cedric Snauwaert d179a94da6 [FIX] web: list_view, context when doing name_get call in m2m was not compute correctly
this is a backport of commit fd56268c6ca4e8a6f94f16de9129bd12be87303f
2015-11-26 10:25:15 +01:00
Christophe Simonis 4a3c4713e9 [MERGE] forward port of branch 7.0 up to 209ce6f 2015-03-09 11:24:32 +01:00
Aaron Bohy e73a3c6898 [FIX] Web: view_list.js: pager next and previous actions
When the number of records n and the limit l were such that n%l = 0
(e.g. 16 records total, 8 displayed per page), clicking on the
previous button on the first page, or on the next button on the
last page produced a bug because the total number of pages
computed for this edge case was incorrect.
2015-02-25 14:35:19 +01:00
Christophe Simonis 2ed212dcbf [MERGE] forward port of branch 7.0 up to d6daf5f 2014-12-03 17:51:06 +01:00
Martin Trigaux a765876ffb [IMP] web: do not fully hide pager in grouped view
When the list view is grouped, the page count should be hidden as irrelevant.
However if it's fully hidden, the limit can no longer be changed.
Instead of hidding the pager, this commit hides the arrows and replaces
the content by the current limit to allow to be changed.
2014-12-03 15:02:36 +01:00
Christophe Simonis e1e7dc0af9 [MERGE] forward port of branch 7.0 up to 419d934 2014-12-01 15:33:48 +01:00
Géry Debongnie 29f895f947 [FIX] fix editing one2many in some cases (web)
See issue #3964 for more detail.  Main problem was caused by commit
f0e331e005.  It set the key name+'__display' to false when reloading
a record for all field types, but it was only concerned with many2many.
2014-12-01 10:29:00 +01:00
Denis Ledoux e347011f24 [MERGE] forward port of branch 7.0 up to 2080ea0 2014-11-27 13:27:37 +01:00
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 8a7728790b [MERGE] forward port of branch 7.0 up to 60ab6f1 2014-08-12 17:49:12 +02: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
Christophe Simonis bdc4dd4a65 [MERGE] forward port of branch 7.0 up to 95cff0b 2014-06-27 16:00:28 +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
Denis Ledoux 8e83dbff5d [MERGE] Forward-port of 7.0 bugfixes up to 7d3453d119 2014-06-24 12:27:09 +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 f652402dd7 [FIX] web: read_ids of data.js use method search_read if check_access_rule option is true.
This fix is related to revision 3985 revid:dle@openerp.com-20140326142040-pls0dk2kd03z55ro, which did not worked for buffered dataset (virtual one2many line in view form
search_read is used instead of read to not return records for which we lose the access rights

bzr revid: dle@openerp.com-20140327112456-iyceuf9dnn07hwke
2014-03-27 12:24:56 +01:00
Denis Ledoux 7acaaf5894 [FIX] web: use search_read instead of read on form reload and record reload in list, to check if the user can still read the record
bzr revid: dle@openerp.com-20140326142040-pls0dk2kd03z55ro
2014-03-26 15:20:40 +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
Christophe Simonis 541a5d3f82 [MERGE] forward port of branch saas-2 up to revid 3904 chs@openerp.com-20140318112743-tqv492026y2pnbff
bzr revid: chs@openerp.com-20140318115516-sn3laxqseam1oz3f
2014-03-18 12:55:16 +01:00
Christophe Simonis acb010a985 [MERGE] forward port of branch 7.0 up to revid 4162 launchpad_translations_on_behalf_of_openerp-20140318062141-rdiqz2ptnz3qmxd0
bzr revid: chs@openerp.com-20140129095637-mbfz82r5pyz4dctc
bzr revid: dle@openerp.com-20140210140818-5mtk1qhheo219bm1
bzr revid: dle@openerp.com-20140214114445-krexrwm9o2nrxepk
bzr revid: mat@openerp.com-20140219111353-cxo860z7ctz7om30
bzr revid: dle@openerp.com-20140221120519-1pj3wc8kqgkr5uda
bzr revid: chs@openerp.com-20140318112743-tqv492026y2pnbff
2014-03-18 12:27:43 +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
Martin Trigaux 59aa0e88d9 Forward-port of latest saas-2 bugfixes, up to rev.3902 revid:mat@openerp.com-20140219111353-cxo860z7ctz7om30
bzr revid: odo@openerp.com-20140219163348-5fpbm3rgpkq7kjw5
2014-02-19 17:33:48 +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
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
Thibault Delavallée 7416766f6a [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140116110102-6jo2ta5fjkfppu1j
2014-01-16 12:01:02 +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
Vidhin Mehta 56a78ab3a4 [FIX]Issue of trunk in website branch.
bzr revid: vme@tinyerp.com-20131217073042-13d3aa7vgct4l3xw
2013-12-17 13:00:42 +05:30
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 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 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 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 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 062d075f36 [MERGE] forward port of branch saas-1 up to revid 3749 chs@openerp.com-20131030180528-hqsztaujjjqev8ky
bzr revid: chs@openerp.com-20131030180941-7409ksn29hrtavzm
2013-10-30 19:09:41 +01:00
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
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
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
Thibault Delavallée eb98ba3fd6 [FIX] list_view: when composing the active_domain
in list view because of the list header being checked,
also take into account the current action domain;

bzr revid: tde@openerp.com-20131017094355-murxot4rqirw3g68
2013-10-17 11:43:55 +02:00
Xavier Morel 7d2938394f [FIX] null >= 0 is true...
bzr revid: xmo@openerp.com-20131014155709-9cg4bzof02bhtyts
2013-10-14 17:57:09 +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