Commit Graph

370 Commits

Author SHA1 Message Date
Raphael Collet 2ad092b5e5 [ADD] doc: new documentation, with training tutorials, and new scaffolding 2014-08-22 17:51:20 +02:00
Olivier Dony e11eddf753 [MERGE] Forward-port of saas-5 up to 20cc18d 2014-08-13 20:46:47 +02:00
Denis Ledoux b49755b545 [MERGE] forward port of branch saas-3 up to 591326c 2014-08-13 10:29:14 +02: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 1f57528bc6 [MERGE] forward port of branch saas-5 up to 8dfd5ea 2014-06-27 16:14:40 +02:00
Christophe Simonis a4bc65cdba [MERGE] forward port of branch saas-3 up to bdc4dd4 2014-06-27 16:06:37 +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
Christophe Simonis 1eaa69d342 [MERGE] forward port of branch saas-5 up to 9e8e365 2014-06-25 12:44:13 +02:00
Christophe Simonis f68c83545a [MERGE] forward port of branch saas-3 up to a66f3dd 2014-06-25 12:33:17 +02:00
Denis Ledoux 8e83dbff5d [MERGE] Forward-port of 7.0 bugfixes up to 7d3453d119 2014-06-24 12:27:09 +02:00
Géry Debongnie 5f09c7dedc [IMP] improves sorting mechanisms in datasets
Create a deserialize_sort method and add a set_sort method to
datasets.  The set_sort method is useful to avoid duplicating code
in lists and kanban views (to set the initial default order)
2014-06-16 10:44:23 +02:00
Géry Debongnie cb7450acec [IMP] improves the default order parameter
It is renamed 'default_order' and now supports the usual syntax for
sorting fields: for example 'field1, field2 desc, field3 asc'
2014-06-13 14:55:26 +02:00
Géry Debongnie 4c0222355d [IMP] add default order parameter to list views
List views can now be sorted by default with a simple keyword 'order'.
For example

...
<field name="arch" type="xml">
    <tree string="Product Variants" order="name">
        <field name="name"/>
        ...
2014-06-13 11:57:18 +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
Thibault Delavallée a74eb749ae [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140401100513-e4iglorrxnj0ne8j
bzr revid: tde@openerp.com-20140403122017-zl668mpi0w5gwps0
bzr revid: tde@openerp.com-20140408083733-8plf5daah4c8yxxx
2014-04-08 10:37:33 +02: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
Thibault Delavallée 2f0b59be37 [IMP] list_view: allow displaying string-based buttons in list view
and not only img-based buttons.

bzr revid: tde@openerp.com-20140320173907-5b02atnispbznqmj
2014-03-20 18:39:07 +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