[MERGE] forward port of branch 7.0 up to 9a37e5a
[odoo/odoo.git] / addons / web / static / src / js / view_form.js
index db75e1e..305cbcb 100644 (file)
@@ -4106,7 +4106,7 @@ instance.web.form.One2ManyListView = instance.web.ListView.extend({
     },
     is_valid: function () {
         var self = this;
-        if (!this.editable()){
+        if (!this.fields_view || !this.editable()){
             return true;
         }
         this.o2m._dirty_flag = true;