From ce9bbf6c10962e64138c04ca34b7485084e4cdaa Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 6 Sep 2017 11:33:41 +0200 Subject: [PATCH] [FIX] web: Setting ir.values for computed fields Setting ir.values for computed fields is useless as the function onchange in models.py will set to False all the computed fields with a modified dependence. opw:767942 --- addons/web/static/src/js/views/form_view.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/js/views/form_view.js b/addons/web/static/src/js/views/form_view.js index ce850dc5ff5..1e93a2954c0 100644 --- a/addons/web/static/src/js/views/form_view.js +++ b/addons/web/static/src/js/views/form_view.js @@ -1092,7 +1092,8 @@ var FormView = View.extend(common.FieldManagerMixin, { || field.field.type === 'one2many' || field.field.type === 'many2many' || field.field.type === 'binary' - || field.password) { + || field.password + || !_.isEmpty(field.field.depends)) { return false; }