From 8d09a11ceabcf284b38a1d1622df4392a2bb197f Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Wed, 22 Jun 2016 09:25:25 +0200 Subject: [PATCH] [FIX] web: FieldX2Many must use AbstractManyField is_false method If the method return false, when a user write require="1" on a x2many field, the content is valid that there have none or a value. The method was overwrited for a visual change (display the field x2m in readonly mode when they are not value) but is_false is priority use to ensure datas. --- addons/web/static/src/js/views/form_relational_widgets.js | 3 --- 1 file changed, 3 deletions(-) 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 4c7b84b6dfc..624a2fa17a4 100644 --- a/addons/web/static/src/js/views/form_relational_widgets.js +++ b/addons/web/static/src/js/views/form_relational_widgets.js @@ -863,9 +863,6 @@ var FieldX2Many = AbstractManyField.extend({ } return true; }, - is_false: function() { - return false; - }, }); var X2ManyDataSet = data.BufferedDataSet.extend({