From 1e9adb89713905229d02e0383412f883fb5bd3ce Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 19 Oct 2017 11:07:50 +0200 Subject: [FIX] web: domain field should never be considered unset Backport of https://github.com/odoo/odoo/commit/841f41f95b7cf7d8f13ddce724d60d1d1149886d Does not have to be forward-ported in saas-16. --- addons/web/static/src/js/views/form_widgets.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/js/views/form_widgets.js b/addons/web/static/src/js/views/form_widgets.js index c3fafb1646f..fc9b7c268db 100644 --- a/addons/web/static/src/js/views/form_widgets.js +++ b/addons/web/static/src/js/views/form_widgets.js @@ -505,6 +505,9 @@ var FieldDomain = common.AbstractField.extend(common.ReinitializeFieldMixin).ext this.$errorMessage.toggleClass("hidden", this.valid); }).bind(this)); }, + is_false: function () { + return false; + }, is_syntax_valid: function() { return this.field_manager.get("actual_mode") === "view" || this.valid; }, -- cgit v1.2.3 From c57fb01a3e779cd292152bf5e4c894bf7bcd1f41 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Thu, 19 Oct 2017 12:45:47 +0200 Subject: [FIX] web: iOS content in modal disappear As can be seen in https://github.com/scottjehl/Device-Bugs/issues/8 a combination of "-webkit-overflow-scrolling:touch", "position:relative" and "overflow:auto" can have unexpected behavior on iOS. The issue solved here is that writing in a form view inside a modal in iOS (at least version 10.3) would make the whole form body invisible until edition is ended. This commit fixes this by adding a CSS rule which avoid the iOS bug. opw-774396 closes #20314 --- addons/web/static/src/less/modal.less | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addons/web/static/src') diff --git a/addons/web/static/src/less/modal.less b/addons/web/static/src/less/modal.less index bca950796fc..ec12c47381c 100644 --- a/addons/web/static/src/less/modal.less +++ b/addons/web/static/src/less/modal.less @@ -52,6 +52,8 @@ .modal-body { overflow: auto; + // fix iOS issue https://github.com/scottjehl/Device-Bugs/issues/8 + -webkit-transform: translate3d(0, 0, 0); } } } -- cgit v1.2.3