From b7af7004d76d7f4e6077f623c645d568c98f1e5b Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Wed, 31 Aug 2016 16:40:24 +0200 Subject: [FIX] web: scroll view in community Since the merge of the two modules 'web' from enterprise and community it was impossible to scroll in the side menu and in the main content of a community database from Internet Explorer 10 & 11 but it is working in Edge. This was due to missing css 'height' attribute on the '.o_main' class that should be set to 100% for IE to let the flex elements know the size of their parent. This was introduced in rev https://github.com/odoo/odoo/commit/977db823c --- addons/web/static/src/less/webclient_layout.less | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/less/webclient_layout.less b/addons/web/static/src/less/webclient_layout.less index 3355f4f791f..034f00ad3d9 100644 --- a/addons/web/static/src/less/webclient_layout.less +++ b/addons/web/static/src/less/webclient_layout.less @@ -34,6 +34,7 @@ .o-flex(1, 1, auto); .o-flex-display(); min-height: 0; // Allow flex to shrink this element as much as it wants + height: 100%; .o_sub_menu { .o-flex(0, 0, @odoo-submenu-width); -- cgit v1.2.3 From 34efcb498d349ce88993c119dd200404d185d159 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 21 Sep 2016 16:19:12 +0200 Subject: [FIX] web: can't saved X2Many list editable if a deleted record is invalid The widget test if all lines are valid to save the view, but the test include the removed lines (eg: required field). --- addons/web/static/src/js/views/form_relational_widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/js/views/form_relational_widgets.js b/addons/web/static/src/js/views/form_relational_widgets.js index 5b0987f0fc0..4093bf41455 100644 --- a/addons/web/static/src/js/views/form_relational_widgets.js +++ b/addons/web/static/src/js/views/form_relational_widgets.js @@ -973,7 +973,7 @@ var X2ManyListView = ListView.extend({ field.no_rerender = true; current_values[field.name] = field.get('value'); }); - var cached_records = _.filter(this.dataset.cache, function(item){return !_.isEmpty(item.values)}); + var cached_records = _.filter(this.dataset.cache, function(item){return !_.isEmpty(item.values) && !item.to_delete;}); var valid = _.every(cached_records, function(record){ _.each(fields, function(field){ var value = record.values[field.name]; -- cgit v1.2.3