[MERGE] forward port of branch saas-3 up to c11451c
authorDenis Ledoux <dle@odoo.com>
Wed, 5 Nov 2014 09:29:51 +0000 (10:29 +0100)
committerDenis Ledoux <dle@odoo.com>
Wed, 5 Nov 2014 09:29:51 +0000 (10:29 +0100)
addons/web/static/src/js/view_form.js

index 67a16a8..e281845 100644 (file)
@@ -4390,7 +4390,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;